-
Hi, But with above implementation I dont see my custom attribute getting added to tracing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
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 …