Skip to content

tracing/datadog: fix sampling priority escalation on route cache refresh#43533

Open
bvandewalle wants to merge 1 commit intoenvoyproxy:mainfrom
bvandewalle:fix-datadog-sampling-priority
Open

tracing/datadog: fix sampling priority escalation on route cache refresh#43533
bvandewalle wants to merge 1 commit intoenvoyproxy:mainfrom
bvandewalle:fix-datadog-sampling-priority

Conversation

@bvandewalle
Copy link

Commit Message: Fix inconsistent behavior between DD tracer on startSpan and setSampled.
Additional Description: Fixed the Datadog tracer's setSampled(true) to not override the sampling priority, matching the startSpan() behavior of leaving the priority unset so the Datadog agent can apply its own sampling rate. Previously, setSampled(true) would set USER_KEEP priority which prevented the agent from downsampling, causing a significant increase in trace volume when combined with route cache refreshes in Envoy 1.36.
Risk Level: Low
Testing: None
Docs Changes: N/A
Release Notes: Added

Fix #43532

@repokitteh-read-only
Copy link

Hi @bvandewalle, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #43533 was opened by bvandewalle.

see: more, trace.

Signed-off-by: Bernard Van De Walle <bernard@bvandewa.com>
@bvandewalle bvandewalle force-pushed the fix-datadog-sampling-priority branch from 19bc139 to f300213 Compare February 18, 2026 08:03
@bvandewalle bvandewalle requested a deployment to external-contributors February 18, 2026 08:04 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Datadog tracer issue with clear route cache and refreshTracing

1 participant

Comments