How to implement customProcessor in an autoinstrumented java service #12749
-
Hi, We are using agent in our monolith application (non-spring) and would like to customize span with onStart method of Span Processor. Agent version: 2.7.0 Dependencies used are
While starting server we add our span registering logic
But still onStart method is not getting invoked. Please suggest |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can refer to related demo. Pay attention to override the method of |
Beta Was this translation helpful? Give feedback.
-
Hi @steverao , isStartRequired is to true and inspired by shared reference, but still it don't work I think registering is a problem. I register it while we finish our start up activities of wildfly server.
|
Beta Was this translation helpful? Give feedback.
Take a look related extension document. You can add an extension to achieve your own DemoSpanProcessor when using OTel Java Agent.