Skip to content

Commit 9987d8a

Browse files
committed
fix: use operation as fallback name when attemptSpanName is attempt
1 parent e81fd4f commit 9987d8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/tracing/OpenTelemetryTracingTracer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private static String resolveOperationSpanName(
138138
if (attemptSpanName.endsWith("/attempt")) {
139139
return attemptSpanName.substring(0, attemptSpanName.length() - "/attempt".length());
140140
}
141-
return attemptSpanName;
141+
return "attempt".equals(attemptSpanName) ? "operation" : attemptSpanName;
142142
}
143143
return "operation";
144144
}

0 commit comments

Comments
 (0)