Skip to content

Extension to add attributes to root span #10138

Answered by laurit
iamrakesh asked this question in Q&A
Discussion options

You must be logged in to vote

Your main mistake is https://github.com/iamrakesh/otel-extensions/blob/db43d64d1794fc53191da00820aad91f744c2ea3/wicket/src/main/java/io/github/iamrakesh/otel/wicket/instrumentation/RequestHandlerInstrumentation.java#L25 If you had placed it in a separate class as the original code does it would have worked. The problem is that instrumentation code contains 2 kinds of classes. Classes that are used to set up the instrumentation and classes that are injected into the application class loader (documentation calls these helper classes). Helper classes can use classes from the instrumented framework but other classes can not. Here you have created a dependency from a class that is used to set …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@iamrakesh
Comment options

@iamrakesh
Comment options

@laurit
Comment options

Answer selected by iamrakesh
@iamrakesh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants