Problem
For background context see:
If OpenTelemetry is configured with filtering - e.g. as follows:
AddHttpClientInstrumentation(o => o.FilterHttpRequestMessage = _ => false)
... then our SentrySpanProcessor receives OnStart events for any outgoing requests from HttpClient but never receives a corresponding OnEnd event.
This leaves a bunch of SentrySpan instances accumulating in SpanProcessor._map, which never get cleaned up.
Investigation
Problem
For background context see:
If OpenTelemetry is configured with filtering - e.g. as follows:
... then our SentrySpanProcessor receives
OnStartevents for any outgoing requests from HttpClient but never receives a correspondingOnEndevent.This leaves a bunch of
SentrySpaninstances accumulating inSpanProcessor._map, which never get cleaned up.Investigation