Trace context propagation is not happening with tomcat and http-url-connection instrumentation disabled #7852
-
This documentation https://opentelemetry.io/docs/instrumentation/java/automatic/agent-config/ mentions that we can disable all libraries auto instrumentation by default using property When I disabled tomcat instrumentation using property Looks like tracing is not working without boundary library instrumentation enabled. If this the right expectation, the documentation may have to be updated accordingly. In my case, I want spring-webmvc span to be root span. To achieve this, I tried disabling tomcat instrumentation so that spring-webmvc can start the root span but this is not working. Is it possible to achieve this? Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It is not possible. Spring web instrumentation does not do context propagation nor does it create a server span. |
Beta Was this translation helpful? Give feedback.
It is not possible. Spring web instrumentation does not do context propagation nor does it create a server span.
Disabling all instrumentations and enabling only the ones you need is an advanced configuration option. You'll have to understand what these instrumentations do and which you really need.