mirror of https://github.com/grpc/grpc-java.git
opentelemetry: Fix checking wrong metric for null
This commit is contained in:
parent
c368a0f9f8
commit
cffc12a074
|
|
@ -194,7 +194,7 @@ final class OpenTelemetryMetricsModule {
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue