Update to OTel 1.12 (#247)

This commit is contained in:
Anuraag Agrawal 2022-03-07 14:13:39 +09:00 committed by GitHub
parent f08e82371b
commit d976b2147c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

0
buildscripts/draft-release-notes.sh Normal file → Executable file
View File

View File

@ -18,8 +18,8 @@ val DEPENDENCY_BOMS = listOf(
"org.junit:junit-bom:5.8.2", "org.junit:junit-bom:5.8.2",
"com.linecorp.armeria:armeria-bom:1.9.1", "com.linecorp.armeria:armeria-bom:1.9.1",
"io.grpc:grpc-bom:1.42.1", "io.grpc:grpc-bom:1.42.1",
"io.opentelemetry:opentelemetry-bom:1.11.0", "io.opentelemetry:opentelemetry-bom:1.12.0",
"io.opentelemetry:opentelemetry-bom-alpha:1.11.0-alpha", "io.opentelemetry:opentelemetry-bom-alpha:1.12.0-alpha",
"org.testcontainers:testcontainers-bom:1.16.3" "org.testcontainers:testcontainers-bom:1.16.3"
) )

View File

@ -275,7 +275,8 @@ public class GroovyMetricEnvironment {
.setDescription(description) .setDescription(description)
.setUnit(unit) .setUnit(unit)
.buildWithCallback( .buildWithCallback(
proxiedDoubleObserver(name, description, unit, InstrumentType.OBSERVABLE_SUM, updater)); proxiedDoubleObserver(
name, description, unit, InstrumentType.OBSERVABLE_COUNTER, updater));
} }
/** /**
@ -296,7 +297,8 @@ public class GroovyMetricEnvironment {
.setDescription(description) .setDescription(description)
.setUnit(unit) .setUnit(unit)
.buildWithCallback( .buildWithCallback(
proxiedLongObserver(name, description, unit, InstrumentType.OBSERVABLE_SUM, updater)); proxiedLongObserver(
name, description, unit, InstrumentType.OBSERVABLE_COUNTER, updater));
} }
/** /**
@ -319,7 +321,7 @@ public class GroovyMetricEnvironment {
.setUnit(unit) .setUnit(unit)
.buildWithCallback( .buildWithCallback(
proxiedDoubleObserver( proxiedDoubleObserver(
name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_SUM, updater)); name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_COUNTER, updater));
} }
/** /**
@ -341,7 +343,7 @@ public class GroovyMetricEnvironment {
.setUnit(unit) .setUnit(unit)
.buildWithCallback( .buildWithCallback(
proxiedLongObserver( proxiedLongObserver(
name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_SUM, updater)); name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_COUNTER, updater));
} }
private Consumer<ObservableDoubleMeasurement> proxiedDoubleObserver( private Consumer<ObservableDoubleMeasurement> proxiedDoubleObserver(