Skip to content

Commit 6bf83e3

Browse files
committed
Add unit to new retry histogram
1 parent c89b1c7 commit 6bf83e3

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("{retry_attempt}")
103104
.ofLongs()
104105
.setExplicitBucketBoundariesAdvice(Arrays.asList(1L, 2L, 3L, 5L))
105106
.build();

0 commit comments

Comments
 (0)