Skip to content

Commit c9152c9

Browse files
committed
post-review changes
1 parent fed5ddd commit c9152c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

instrumentation/jmx-metrics/library/src/test/java/io/opentelemetry/instrumentation/jmx/engine/MetricAggregationTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public int getValue() {
6060
@RegisterExtension
6161
static final InstrumentationExtension testing = LibraryInstrumentationExtension.create();
6262

63+
// used to generate non-conflicting metric names at runtime
64+
private static final AtomicInteger metricCounter = new AtomicInteger(0);
65+
6366
private static final String DOMAIN = "otel.jmx.test";
6467
private static MBeanServer theServer;
6568

@@ -193,8 +196,6 @@ void partialAggregateMultipleParams(MetricInfo.Type metricType) throws Exception
193196
}
194197
}
195198

196-
private static final AtomicInteger metricCounter = new AtomicInteger(0);
197-
198199
private static String generateMetricName(MetricInfo.Type metricType) {
199200
// generate a sequential metric name that prevents naming conflicts and unexpected behaviors
200201
return "test.metric"

0 commit comments

Comments
 (0)