[FEATURE REQ] Controlling sample rate for specific activities #43985
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Exporter
Monitor OpenTelemetry Exporter
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Library name and version
Azure.Monitor.OpenTelemetry.AspNetCore 1.1.1
Query/Question
Coming from the classic application insights SDK, it was possible to use a telemetry initializer to set the sample rate of a specific telemetry item, based on whatever your criteria might be.
Is there a way to set a custom sampler when using this package?
Or is there a way to set a different sample rate for a specific activity source?
The use case it that we might have certain requests where we want more accuracy in the data, or we might have a background task making a custom activity, where we always want to include the telemetry from that task.
Environment
Using dotnet 8
The text was updated successfully, but these errors were encountered: