Skip to content

Allow sampling integrations when global rate is 1 #1375

@ngraef

Description

@ngraef

I have set DD_TRACE_SAMPLE_RATE=1.0 to enable Tracing Without Limits. However, I'd like to impose some limits. 😁

We're now ingesting about 30 GB per hour per environment from the dns integration alone, which far exceeds all of our other trace data combined by at least an order of magnitude. We have no reason to ingest 100% of those spans. I can disable the dns integration with DD_TRACE_DISABLED_PLUGINS=dns, but then we lose the metrics generated from those spans.

Is there a middle ground here? I tried setting DD_TRACE_DNS_ANALYTICS_SAMPLE_RATE=0.01 to configure the integration, but that doesn't seem to change the ingestion rate — perhaps because sampling decisions are made at the parent trace level? Is there a way to scale back ingestion of a subset of spans?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions