Skip to content

Commit 3cf4b31

Browse files
committed
debug
1 parent 9bbb440 commit 3cf4b31

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

agent/instrumentation/micrometer-1.0/src/main/java/io/opentelemetry/javaagent/instrumentation/micrometer/ai/AzureMonitorMeterRegistry.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

agent/instrumentation/micrometer-1.0/src/test/java/MicrometerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)