-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Labels
Description
Tracer Version(s)
3.32.0
Operating system and platform
windows
Instrumentation Mode
nuget
TFM
net8.0
Bug Report
I am trying to ignore some resources like health check in APM trace. I tried adding settings in the environment and also tried adding the same in code, but still it's not working. Can you please help me solve this issue?
Reproduction Code
var ddSettings = TracerSettings.FromDefaultSources();
ddSettings.TraceEnabled = true;
ddSettings.CustomSamplingRules = "["
+ "{"service":".","resource":"^GET /healthcheck/?$","sample_rate":0.0},"
+ "{"service":".","resource":"^HEAD /healthcheck/?$","sample_rate":0.0},"
+ "{"service":".*","resource":"^GET /$","sample_rate":0.0}"
+ "]";
Tracer.Configure(ddSettings);