Skip to content

Opentelemetry - what is the right configuration? #4298

Answered by jack-berg
vasigorc asked this question in Q&A
Discussion options

You must be logged in to vote

If you're using the agent, it will automatically configure an OpenTelemetry instance using the autoconfigure module. All of the configuration properties used by autoconfigure can be used with the agent. If those options are for some reason insufficient, there are a variety of extension options available.

If your application has additional instrumentation and needs to access the OpenTelemetry instance, it can do so by calling GlobalOpenTelemetry.get(). Its recommended to only call GlobalOpenTelemetry.get() once and use the result to initialize any application components that are dependent on it. Your application should not configure a separate instance of OpenTelemetry and set it globally …

Replies: 2 comments 15 replies

Comment options

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

@jack-berg
Comment options

@rvoodoochilep
Comment options

Answer selected by vasigorc
Comment options

You must be logged in to vote
12 replies
@trask
Comment options

@vasigorc
Comment options

@vasigorc
Comment options

@jack-berg
Comment options

@trask
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
5 participants