Remove pluralization of failsafe metric namespace (#14722)

This commit is contained in:
Trask Stalnaker 2025-09-19 09:46:40 -07:00 committed by GitHub
parent 3df64dabf9
commit 2e9e2159f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -3069,7 +3069,7 @@ libraries:
type: STRING
- name: failsafe.circuit_breaker.outcome
type: STRING
- name: failsafe.circuit_breaker.state_changes.count
- name: failsafe.circuit_breaker.state_change.count
description: Count of circuit breaker state changes.
type: LONG_SUM
unit: execution

View File

@ -57,7 +57,7 @@ public final class FailsafeTelemetry {
.build();
LongCounter stateChangesCounter =
meter
.counterBuilder("failsafe.circuit_breaker.state_changes.count")
.counterBuilder("failsafe.circuit_breaker.state_change.count")
.setDescription("Count of circuit breaker state changes.")
.setUnit("{execution}")
.build();

View File

@ -67,7 +67,7 @@ final class FailsafeTelemetryTest {
"io.opentelemetry.failsafe-3.0",
metricAssert ->
metricAssert
.hasName("failsafe.circuit_breaker.state_changes.count")
.hasName("failsafe.circuit_breaker.state_change.count")
.hasLongSumSatisfying(
sum ->
sum.isMonotonic()