File tree Expand file tree Collapse file tree 2 files changed +7
-1
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
-1
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,11 @@ private void trackCounter(Counter counter) {
9696 getProperties (counter ));
9797 }
9898
99+ @ SuppressWarnings ("SystemOut" )
99100 private void trackTimer (Timer timer ) {
100101 long count = timer .count ();
101102 if (count == 0 ) {
103+ System .out .println ("AzureMonitorMeterRegistry.trackTimer count == 0" );
102104 // important not to send explicit count of 0 because breeze converts that to 1
103105 return ;
104106 }
@@ -113,9 +115,11 @@ private void trackTimer(Timer timer) {
113115 getProperties (timer ));
114116 }
115117
118+ @ SuppressWarnings ("SystemOut" )
116119 private void trackDistributionSummary (DistributionSummary summary ) {
117120 long count = summary .count ();
118121 if (count == 0 ) {
122+ System .out .println ("AzureMonitorMeterRegistry.trackDistributionSummary count == 0" );
119123 // important not to send explicit count of 0 because breeze converts that to 1
120124 return ;
121125 }
@@ -161,9 +165,11 @@ private void trackFunctionCounter(FunctionCounter counter) {
161165 getProperties (counter ));
162166 }
163167
168+ @ SuppressWarnings ("SystemOut" )
164169 private void trackFunctionTimer (FunctionTimer timer ) {
165170 double count = timer .count ();
166171 if (count == 0 ) {
172+ System .out .println ("AzureMonitorMeterRegistry.trackFunctionTimer count == 0" );
167173 // important not to send explicit count of 0 because breeze converts that to 1
168174 return ;
169175 }
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ void shouldCaptureFunctionCounter() {
258258 @ Test
259259 void shouldCaptureFunctionTimer () {
260260 System .out .println ("shouldCaptureFunctionTimer" );
261-
261+
262262 // given
263263 CompositeMeterRegistry registry = Metrics .globalRegistry ;
264264
You can’t perform that action at this time.
0 commit comments