Closed AndyMcKenna closed 8 months ago
https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling-classic-api#frequently-asked-questions check the last qn in this FAQ "There are certain rare events I always want to see. How can I get them past the sampling module?"
Thanks!
Is your feature request related to a problem? This isn't a feature request as much as a question on how to do this with the existing features
Describe the solution you'd like. I'd like to be able to entirely disable sampling for a request and anything under that operation (dependencies, traces, events, etc)
Describe alternatives you've considered. I've tried this with a combination of a telemetry initializer and a processor. They are both executing but the requests still get sampled.
Initializer
and then my processor that inherits from
AdaptiveSamplingTelemetryProcessor
I see all this logic working locally via breakpoints and the results in the portal but in production we sample around 1% and sometimes the dimension will show up but everything under that request still gets sampled out.
I've verified that my processor pipeline is unrelated processors and then
DisableAdaptiveSamplingTelemetryProcessor
at the end.Additional context. We get millions of requests per day and have to sample very aggressively to control costs but sometimes I want to be able to capture a totally unsampled request.