-
Hi, I am working on adding support for Apache Sling to Open Telemetry. Sling is a Java-based web application framework, and the first item on my list is to customize the span name to reflect the handler. Sling embeds Jetty has a well-defined entry point in the so-called SlingMainServlet, so what OTEL initially seems is a mapping for When Sling handlers a request it has a I have two rough ideas right now:
Does any of these ideas sound workable form an OTEL point of view? Are there any other patters in the java library that could be useful in my scenario? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
When you just want to update the CONTROLLER to overwrite the value from the servlet instrumentation or NESTED_CONTROLLER like in
to overwrite all previous values.
|
Beta Was this translation helpful? Give feedback.
When you just want to update the
server
span name then usually we useopentelemetry-java-instrumentation/instrumentation/play/play-mvc/play-mvc-2.6/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/play/v2_6/Play26Singletons.java
Line 63 in db7eb14
CONTROLLER
to overwrite the value from the servlet instrumentation orNESTED_CONTROLLER
like inopentelemetry-java-instrumentation/instrumentation/jaxrs/jaxrs-2.0/jaxrs-2.0-jersey-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jaxrs/v2_0/JerseySpanName.java
Line 28 in db7eb14