Skip to content

adaptive sampling manifest cleanup: cpp bug entries + rust missing_feature unflagging#7224

Closed
bm1549 wants to merge 5 commits into
mainfrom
brian.marks/adaptive-sampling-combined
Closed

adaptive sampling manifest cleanup: cpp bug entries + rust missing_feature unflagging#7224
bm1549 wants to merge 5 commits into
mainfrom
brian.marks/adaptive-sampling-combined

Conversation

@bm1549

@bm1549 bm1549 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Motivation

Consolidates three adaptive-sampling manifest PRs (#6948, #6949, #7007) into one cleanup. All changes are manifest-only — no test logic or framework code touched.

Changes

manifests/cpp.yml (from #6949 + follow-up fix):

  • Removes five stale bug declarations gated on component_version: <=1.0.0 for adaptive-sampling parametric tests. The C++ tracer is on v2.1.1; those gates never apply. The entries were replaced with explicit >1.0.0 version gates to make the floor unambiguous.
  • Tests covered: test_remote_sampling_rules_retention, test_trace_sampling_rules_override_rate, test_trace_sampling_rules_with_tags, test_trace_sampling_rate_override_env, test_trace_sampling_rate_with_sampling_rules

manifests/rust.yml (from #6948 + #7007):

  • Unflag TestDynamicConfigSamplingRules::test_trace_sampling_rules_override_env — now passes on dd-trace-rs >= 0.3.3; gated to >=0.3.3.
  • Remove four missing_feature entries now that dd-trace-rs#227 landed:
    • TestDynamicConfigSamplingRules::test_trace_sampling_rules_override_rate
    • TestDynamicConfigSamplingRules::test_trace_sampling_rules_with_tags
    • TestDynamicConfigV1::test_trace_sampling_rate_override_env
    • TestDynamicConfigV1::test_trace_sampling_rate_with_sampling_rules

Workflow

  1. Created as draft.
  2. Manifest-only change — no R&P review needed.

Closes #6948, #6949. Supersedes #7007 (the rust unblock, which was draft-blocked on dd-trace-rs#227 and is now merged).

Reviewer checklist

  • Anything but tests/ or manifests/ is modified? No — only manifests/cpp.yml and manifests/rust.yml touched.
  • A docker base image is modified? No.
  • A scenario is added, removed or renamed? No.

bm1549 and others added 5 commits June 26, 2026 14:09
The bug entries in cpp.yml for five adaptive sampling tests are gated
on component_version: <=1.0.0. dd-trace-cpp is on v2.1.1, so the gates
never apply and the tests already run. Removing the obsolete entries
to keep the manifest clean.

Verified locally against dd-trace-cpp main (v2.1.1) by running the
five affected tests three times -- all passed cleanly each run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Matches the format used for sibling entries like
TestDynamicConfigV1_EmptyServiceTargets: ">1.0.0" and mirrors the
approach taken in the Ruby PR (#6950). Preserves the historical signal
that these tests were broken on cpp <=1.0.0 instead of silently
deleting it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Verified locally against dd-trace-rs main (release 0.3.3) using
system-tests-local. TestDynamicConfigSamplingRules::
test_trace_sampling_rules_override_env now passes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Version-gate the now-passing test rather than doing a bare activation,
since CI still runs against PROD_TAG=0.3.1 and the fix landed in 0.3.3.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Enables tests that now pass with the adaptive-sampling precedence fix
and DD_TRACE_SAMPLE_RATE support shipped in dd-trace-rs PR #227:

- TestDynamicConfigSamplingRules::test_trace_sampling_rules_override_rate
- TestDynamicConfigSamplingRules::test_trace_sampling_rules_with_tags
- TestDynamicConfigV1::test_trace_sampling_rate_override_env
- TestDynamicConfigV1::test_trace_sampling_rate_with_sampling_rules

The Rust tracer now:
- Respects the documented multi-source precedence (env rules survive
  an RC-rate-only update; the synthetic catch-all built from
  tracing_sampling_rate uses default provenance, DM -3).
- Parses DD_TRACE_SAMPLE_RATE as a global catch-all rate.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

manifests/cpp.yml                                                       @DataDog/dd-trace-cpp
manifests/rust.yml                                                      @DataDog/apm-rust

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.

1 participant