Skip to content

Commit ff9cca4

Browse files
jaydelucatrask
andauthored
Add unit to new failsafe histogram (#15537)
Co-authored-by: Trask Stalnaker <[email protected]>
1 parent 49158e3 commit ff9cca4

File tree

1 file changed

+1
-0
lines changed
  • instrumentation/failsafe-3.0/library/src/main/java/io/opentelemetry/instrumentation/failsafe/v3_0

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public <R> RetryPolicy<R> createRetryPolicy(RetryPolicy<R> delegate, String retr
100100
meter
101101
.histogramBuilder("failsafe.retry_policy.attempts")
102102
.setDescription("Number of attempts for each execution.")
103+
.setUnit("{attempt}")
103104
.ofLongs()
104105
.setExplicitBucketBoundariesAdvice(Arrays.asList(1L, 2L, 3L, 5L))
105106
.build();

0 commit comments

Comments
 (0)