Skip to content

What are the best practices to dynamically control whether to enable/disable OpenTelemetry tracing #3416

Answered by p10tyr
luoxiao352 asked this question in Q&A
Discussion options

You must be logged in to vote

You are correct once it is set up there is no way to change it. I am not sure if this is by W3C specification or just an implementation detail.

The only way you can change it, is the change the values and restart your service, unless you have it load balanced (web sites maybe) or doesn't matter for a short down time (worker services or docker workers)

One could argue that you shouldn't be changing it because Tracing is not meant to work like logging and you shouldn't need to export 100% just a fraction large enough for you to find problems. for example you could have 1 million requests a day.. even a 25% will find outliers and performance issues.

The way I have it setup all development ma…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@luoxiao352
Comment options

@CodeBlanch
Comment options

Answer selected by luoxiao352
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