[BUG] AddAzureMonitorTraceExporter ignores sampling #47780
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Monitor.OpenTelemtry.Exporter 1.3
Describe the bug
As we are getting more into open telemtry and trying to cut our logging costs we noted that sampling is broken
eg for http we want the sampling to be based on the span header however for EventHubs and Redis where there is no span we want to use TraceIdRatioBasedSampler
AddAzureMonitorTraceExporter ignores changes this. How do we do this ?
Expected behavior
The actual sampler is used
Actual behavior
The sampler is ignored
Reproduction Steps
Environment
No response
The text was updated successfully, but these errors were encountered: