Skip to content

Commit c7ea2e9

Browse files
committed
fix: use isNullOrEmpty() check
1 parent ea86930 commit c7ea2e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gax-java/gax/src/main/java/com/google/api/gax/tracing/ApiTracerContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public Map<String, Object> getAttemptAttributes() {
159159
ObservabilityAttributes.ARTIFACT_ATTRIBUTE, libraryMetadata().artifactName());
160160
}
161161
}
162-
if (transport() == Transport.GRPC && fullMethodName() != null) {
162+
if (transport() == Transport.GRPC && !Strings.isNullOrEmpty(fullMethodName())) {
163163
attributes.put(ObservabilityAttributes.GRPC_RPC_METHOD_ATTRIBUTE, fullMethodName());
164164
}
165165
return attributes;

0 commit comments

Comments
 (0)