-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
1,001 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
java/client/src/org/openqa/selenium/remote/RemoteTags.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.openqa.selenium.remote; | ||
|
||
import io.opentelemetry.trace.Span; | ||
import org.openqa.selenium.Capabilities; | ||
|
||
import java.util.function.BiConsumer; | ||
|
||
public class RemoteTags { | ||
|
||
private RemoteTags() { | ||
// Utility class | ||
} | ||
|
||
public static BiConsumer<Span, Capabilities> CAPABILITIES = (span, caps) -> { | ||
span.setAttribute("session.capabilities", String.valueOf(caps)); | ||
}; | ||
|
||
public static BiConsumer<Span, SessionId> SESSION_ID = (span, id) -> { | ||
span.setAttribute("session.id", String.valueOf(id)); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
java/client/src/org/openqa/selenium/remote/tracing/HttpTags.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.openqa.selenium.remote.tracing; | ||
|
||
import io.opentelemetry.trace.Span; | ||
import org.openqa.selenium.remote.http.HttpRequest; | ||
import org.openqa.selenium.remote.http.HttpResponse; | ||
|
||
import java.util.function.BiConsumer; | ||
|
||
public class HttpTags { | ||
|
||
private HttpTags() { | ||
// Utility class | ||
} | ||
|
||
public static BiConsumer<Span, HttpRequest> HTTP_REQUEST = (span, req) -> { | ||
span.setAttribute("http.method", req.getMethod().toString()); | ||
span.setAttribute("http.url", req.getUri()); | ||
}; | ||
|
||
public static BiConsumer<Span, HttpResponse> HTTP_RESPONSE = (span, res) -> { | ||
span.setAttribute("http.status_code", res.getStatus()); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.