Skip to content

Commit d976b21

Browse files
authored
Update to OTel 1.12 (#247)
1 parent f08e823 commit d976b21

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

buildscripts/draft-release-notes.sh

100644100755
File mode changed.

dependencyManagement/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ val DEPENDENCY_BOMS = listOf(
1818
"org.junit:junit-bom:5.8.2",
1919
"com.linecorp.armeria:armeria-bom:1.9.1",
2020
"io.grpc:grpc-bom:1.42.1",
21-
"io.opentelemetry:opentelemetry-bom:1.11.0",
22-
"io.opentelemetry:opentelemetry-bom-alpha:1.11.0-alpha",
21+
"io.opentelemetry:opentelemetry-bom:1.12.0",
22+
"io.opentelemetry:opentelemetry-bom-alpha:1.12.0-alpha",
2323
"org.testcontainers:testcontainers-bom:1.16.3"
2424
)
2525

jmx-metrics/src/main/groovy/io/opentelemetry/contrib/jmxmetrics/GroovyMetricEnvironment.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ public void registerDoubleCounterCallback(
275275
.setDescription(description)
276276
.setUnit(unit)
277277
.buildWithCallback(
278-
proxiedDoubleObserver(name, description, unit, InstrumentType.OBSERVABLE_SUM, updater));
278+
proxiedDoubleObserver(
279+
name, description, unit, InstrumentType.OBSERVABLE_COUNTER, updater));
279280
}
280281

281282
/**
@@ -296,7 +297,8 @@ public void registerLongCounterCallback(
296297
.setDescription(description)
297298
.setUnit(unit)
298299
.buildWithCallback(
299-
proxiedLongObserver(name, description, unit, InstrumentType.OBSERVABLE_SUM, updater));
300+
proxiedLongObserver(
301+
name, description, unit, InstrumentType.OBSERVABLE_COUNTER, updater));
300302
}
301303

302304
/**
@@ -319,7 +321,7 @@ public void registerDoubleUpDownCounterCallback(
319321
.setUnit(unit)
320322
.buildWithCallback(
321323
proxiedDoubleObserver(
322-
name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_SUM, updater));
324+
name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_COUNTER, updater));
323325
}
324326

325327
/**
@@ -341,7 +343,7 @@ public void registerLongUpDownCounterCallback(
341343
.setUnit(unit)
342344
.buildWithCallback(
343345
proxiedLongObserver(
344-
name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_SUM, updater));
346+
name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_COUNTER, updater));
345347
}
346348

347349
private Consumer<ObservableDoubleMeasurement> proxiedDoubleObserver(

0 commit comments

Comments
 (0)