File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
agent/instrumentation/micrometer-1.0/src
main/java/io/opentelemetry/javaagent/instrumentation/micrometer/ai Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ private void trackCounter(Counter counter) {
100100 private void trackTimer (Timer timer ) {
101101 long count = timer .count ();
102102 if (count == 0 ) {
103- System .out .println ("AzureMonitorMeterRegistry.trackTimer count == 0" );
103+ System .out .println ("AzureMonitorMeterRegistry.trackTimer count == 0: " + timer . getId (). getName () );
104104 // important not to send explicit count of 0 because breeze converts that to 1
105105 return ;
106106 }
@@ -119,7 +119,7 @@ private void trackTimer(Timer timer) {
119119 private void trackDistributionSummary (DistributionSummary summary ) {
120120 long count = summary .count ();
121121 if (count == 0 ) {
122- System .out .println ("AzureMonitorMeterRegistry.trackDistributionSummary count == 0" );
122+ System .out .println ("AzureMonitorMeterRegistry.trackDistributionSummary count == 0: " + summary . getId (). getName () );
123123 // important not to send explicit count of 0 because breeze converts that to 1
124124 return ;
125125 }
@@ -169,7 +169,7 @@ private void trackFunctionCounter(FunctionCounter counter) {
169169 private void trackFunctionTimer (FunctionTimer timer ) {
170170 double count = timer .count ();
171171 if (count == 0 ) {
172- System .out .println ("AzureMonitorMeterRegistry.trackFunctionTimer count == 0" );
172+ System .out .println ("AzureMonitorMeterRegistry.trackFunctionTimer count == 0: " + timer . getId (). getName () );
173173 // important not to send explicit count of 0 because breeze converts that to 1
174174 return ;
175175 }
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ void shouldCaptureTimer() {
136136 timer .record (Duration .ofMillis (44 ));
137137 timer .record (Duration .ofMillis (55 ));
138138
139+ System .out .println ("TIMER COUNT: " + timer .count ());
140+
139141 // then
140142 waitAtMost (Duration .ofSeconds (20 )).until (() -> getLastMeasurement ("test-timer" ) != null );
141143
@@ -161,6 +163,8 @@ void shouldCaptureDistributionSummary() {
161163 distributionSummary .record (4.4 );
162164 distributionSummary .record (5.5 );
163165
166+ System .out .println ("DISTRIBUTION SUMMARY COUNT: " + distributionSummary .count ());
167+
164168 // then
165169 waitAtMost (Duration .ofSeconds (20 )).until (() -> getLastMeasurement ("test-summary" ) != null );
166170
You can’t perform that action at this time.
0 commit comments