Skip to content

Is using the agent and the starter at the same time possible ? #12936

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

You must be logged in to vote

And looking at SdkTracerProvider class, it don't seems possible to have its SpanProcessor list being modified afterward ...

The sdk configured by the agent can be changed with extensions, see https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/examples/extension There is a sample SpanProcessor there.

Apparently, it seems possible to apply an AutoConfigurationCustomizer to introduce a custom span processor whenever using the starter

This is pretty much the same as with agent extension, the only difference is that the SpanProcessor can reside inside your application.

But in the end, I fall again on my initial question : Can both starter and agent get along in…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Mumeii
Comment options

@laurit
Comment options

Answer selected by jaydeluca
@Mumeii
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