Skip to content

[BUG]: Data Dog ignore resource not working #7958

@BennyJohnPeter9496

Description

@BennyJohnPeter9496

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions