Skip to content

Commit 07e0c64

Browse files
committed
better span name in TracedCommandExecutor for tracing
1 parent e6d6e0b commit 07e0c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/org/openqa/selenium/remote/TracedCommandExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public TracedCommandExecutor(CommandExecutor delegate, Tracer tracer) {
3737

3838
@Override
3939
public Response execute(Command command) throws IOException {
40-
try (Span commandSpan = tracer.getCurrentContext().createSpan("command")) {
40+
try (Span commandSpan = tracer.getCurrentContext().createSpan(command.getName())) {
4141
SessionId sessionId = command.getSessionId();
4242
if (sessionId != null) {
4343
commandSpan.setAttribute("sessionId", sessionId.toString());

0 commit comments

Comments
 (0)