Skip to content

Commit 2e9e215

Browse files
authored
Remove pluralization of failsafe metric namespace (open-telemetry#14722)
1 parent 3df64da commit 2e9e215

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/instrumentation-list.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3069,7 +3069,7 @@ libraries:
30693069
type: STRING
30703070
- name: failsafe.circuit_breaker.outcome
30713071
type: STRING
3072-
- name: failsafe.circuit_breaker.state_changes.count
3072+
- name: failsafe.circuit_breaker.state_change.count
30733073
description: Count of circuit breaker state changes.
30743074
type: LONG_SUM
30753075
unit: execution

instrumentation/failsafe-3.0/library/src/main/java/io/opentelemetry/instrumentation/failsafe/v3_0/FailsafeTelemetry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public <R> CircuitBreaker<R> createCircuitBreaker(
5757
.build();
5858
LongCounter stateChangesCounter =
5959
meter
60-
.counterBuilder("failsafe.circuit_breaker.state_changes.count")
60+
.counterBuilder("failsafe.circuit_breaker.state_change.count")
6161
.setDescription("Count of circuit breaker state changes.")
6262
.setUnit("{execution}")
6363
.build();

instrumentation/failsafe-3.0/library/src/test/java/io/opentelemetry/instrumentation/failsafe/v3_0/FailsafeTelemetryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void captureCircuitBreakerMetrics() {
6767
"io.opentelemetry.failsafe-3.0",
6868
metricAssert ->
6969
metricAssert
70-
.hasName("failsafe.circuit_breaker.state_changes.count")
70+
.hasName("failsafe.circuit_breaker.state_change.count")
7171
.hasLongSumSatisfying(
7272
sum ->
7373
sum.isMonotonic()

0 commit comments

Comments
 (0)