Skip to content

Commit

Permalink
opentelemetry: Fix checking wrong metric for null
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed May 9, 2024
1 parent 18cf46e commit affa470
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -194,7 +194,7 @@ void recordFinishedAttempt() {
io.opentelemetry.api.common.Attributes.of(METHOD_KEY, fullMethodName,
STATUS_KEY, statusCode.toString());

if (module.resource.clientAttemptCountCounter() != null ) {
if (module.resource.clientAttemptDurationCounter() != null ) {
module.resource.clientAttemptDurationCounter()
.record(attemptNanos * SECONDS_PER_NANO, attribute);
}
Expand Down

0 comments on commit affa470

Please sign in to comment.