Skip to content

High memory usage with OpenTelemetry integration #3166

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

You must be logged in to vote

After much experimenting, I've figured out what appears to be the cause of the issue. It looks like spans that are filtered using the OpenTelemetry FilterHttpRequestMessage - e.g.;

[TracingProviderBuilder].AddHttpClientInstrumentation(options => options.FilterHttpRequestMessage = ShouldInstrumentHttpRequest)

Are causing TransactionTracer instances to be created inside SentrySpanProcessor._map that never get cleaned up.

Thanks heaps @danpaul88 ! I was able to reproduce this locally and I've created an issue to track this:

Now to fix it (hopefully)...

Replies: 2 comments 4 replies

Comment options

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

@danpaul88
Comment options

@danpaul88
Comment options

Comment options

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

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