Update to OTel 1.12 (#247)
This commit is contained in:
parent
f08e82371b
commit
d976b2147c
|
@ -18,8 +18,8 @@ val DEPENDENCY_BOMS = listOf(
|
|||
"org.junit:junit-bom:5.8.2",
|
||||
"com.linecorp.armeria:armeria-bom:1.9.1",
|
||||
"io.grpc:grpc-bom:1.42.1",
|
||||
"io.opentelemetry:opentelemetry-bom:1.11.0",
|
||||
"io.opentelemetry:opentelemetry-bom-alpha:1.11.0-alpha",
|
||||
"io.opentelemetry:opentelemetry-bom:1.12.0",
|
||||
"io.opentelemetry:opentelemetry-bom-alpha:1.12.0-alpha",
|
||||
"org.testcontainers:testcontainers-bom:1.16.3"
|
||||
)
|
||||
|
||||
|
|
|
@ -275,7 +275,8 @@ public class GroovyMetricEnvironment {
|
|||
.setDescription(description)
|
||||
.setUnit(unit)
|
||||
.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)
|
||||
.setUnit(unit)
|
||||
.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)
|
||||
.buildWithCallback(
|
||||
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)
|
||||
.buildWithCallback(
|
||||
proxiedLongObserver(
|
||||
name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_SUM, updater));
|
||||
name, description, unit, InstrumentType.OBSERVABLE_UP_DOWN_COUNTER, updater));
|
||||
}
|
||||
|
||||
private Consumer<ObservableDoubleMeasurement> proxiedDoubleObserver(
|
||||
|
|
Loading…
Reference in New Issue