Skip to content

Possibility to suppress traces in certain scopes like background services #5932

Answered by TimothyMothra
plachor asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @plachor,
Sorry I don't fully understand your scenario.

For the sake of conversation, lets assume you have multiple microservices: A -> B -> C -> D

  • It sounds like you want to collect Http requests for your first microservice (A), but not for any of the downsteam services.
    If I'm understanding you correctly, in this scenario you would not add OpenTelemetry to B, C, or D.

  • You already found two work arounds above 1 & 2, and you were asking about performance impact.
    For 1 there should be no impact. When you call the API to create an Activity, if there is no subscribed listener, no Activity is created. These APIs should return null. For 2, this is the recommended way to suppress calls t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@plachor
Comment options

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