Skip to content

OpenTelemetry & SpringBoot #4654

Answered by mateuszrzeszutek
ziomill asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ziomill ,

  1. What if I don't configure the SDK (for example, suppose that one would use the default configuration) ? Can I avoid the explicit OpenTelemetry configuration?

You'll get a no-op implementation, which is most likely not what you want at all.

2. I'm retrieving the OpenTelemetry instance during the application startup, handling it as Singleton bean. Looking at the javadoc it seems that the use of GlobalOpenTelemetry should be avoided. In case, what is the right way to obtain an OpenTelemetry instance?

GlobalOpenTelemetry is pretty much only for the javaagent coop, you shouldn't use it in manually instrumented application code (well, it's generally a good idea to avoid glo…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ziomill
Comment options

@mateuszrzeszutek
Comment options

@davidtam
Comment options

@mateuszrzeszutek
Comment options

Answer selected by ziomill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants