Skip to content

Is it possible to disable the SentryMessageHandler/SentryHttpMessageHandler? #3671

Closed Answered by jamescrosswell
evolvedlight asked this question in Q&A
Discussion options

You must be logged in to vote

Ah I see... thanks @evolvedlight. Yes the baggage headers would be passed on regardless as we don't want to break downstream tracing in a scenario where you have Service A (tracing enabled - creates baggage headers) -> Service B (using .NET SDK) -> Service C (tracing enabled - wants baggage headers).

I assume you're using Sentry.Extensions.Logging since that appears the be the only integration that automatically adds the SentryMessageHandler (via an implementation of IHttpMessageHandlerBuilderFilter):

if (!handlerBuilder.AdditionalHandlers.Any(h => h is SentryHttpMes…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by evolvedlight
@evolvedlight
Comment options

Comment options

You must be logged in to vote
0 replies
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