Skip to content

Conversation

@dmehala
Copy link
Collaborator

@dmehala dmehala commented Jun 19, 2024

This fixes a regression introduced by Sampling Delegation (#59). When the sampling delegation header is present during the trace context extraction, the sampling priority is discarded even if the feature is disabled.

This change of behaviour can potentially result in an increase of ingested spans. Additionnally, the tracer should behave as before the introduction of this feature when it is not enabled.

Changes:

  • Sampling priority is not longer discard when x-datadog-delegate-trace-sampling is present.
  • Update sampling delegation tests.

This fixes a regression introduced by Sampling Delegation (#59).
When the sampling delegation header is present during the trace context
extraction, the sampling priority is discarded even if the feature is
disabled.

This change of behaviour can potentially result in
an increase of ingested spans. Additionnally, the tracer should behave
as before the introduction of this feature when it is not enabled.

Changes:
  - Sampling priority is not longer discard when
  `x-datadog-delegate-trace-sampling` is present.
  - Update sampling delegation tests.
@dmehala dmehala requested a review from a team as a code owner June 19, 2024 15:02
@dmehala dmehala requested review from Anilm3 and removed request for a team June 19, 2024 15:02
@pr-commenter
Copy link

pr-commenter bot commented Jun 19, 2024

Benchmarks

Benchmark execution time: 2024-06-19 15:05:20

Comparing candidate commit 7e1a833 in PR branch dmehala/fix-sampling-delegation with baseline commit 5f743f4 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

@dmehala dmehala merged commit 415193d into main Jun 20, 2024
@dmehala dmehala deleted the dmehala/fix-sampling-delegation branch June 20, 2024 10:15
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.

3 participants