Skip to content

test(debugger): enable Ruby coordinated snapshot sampling from 2.49.0 - #8557

Open
p-datadog wants to merge 2 commits into
mainfrom
p/enable-correlation-ruby
Open

p-datadog wants to merge 2 commits into
mainfrom
p/enable-correlation-ruby

Conversation

@p-datadog

Copy link
Copy Markdown
Member

Motivation

The Ruby tracer gained per-trace coordinated snapshot sampling in dd-trace-rb #6118, released in 2.49.0. The snapshot correlation tests added by #7425 cover it for Go, .NET and Node.js; Ruby is still marked missing_feature. This PR turns them on for Ruby.

Changes

  • Test_Debugger_Coordinated_Sampling and Test_Debugger_Probe_Budgets::test_per_trace_budget are enabled for Ruby from v2.49.0 on the weblogs that run the debugger scenario for Ruby (rails72, rails80, uds-rails), the same shape #7425 used to enable .NET.
  • The shared Ruby weblog controller gains GET /debugger/correlation (calls Correlation, CorrelationMiddle and CorrelationLeaf, spaced 400ms apart) and GET /debugger/correlation/loop/<count> (sleeps one second per iteration), mirroring the Go, .NET and Node.js weblogs. Both endpoints are already listed in the end-to-end weblog specification, and the two loop lines are mapped for the Ruby line probes.
  • The class-wide missing_feature gate on Test_Debugger_Probe_Budgets becomes the v2.49.0 version gate, and the three budget tests whose /debugger/budgets endpoint the Ruby weblog lacks are declared incomplete_test_app (weblog has no /debugger/budgets endpoint).

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Tests, manifest, weblog are modified -> you'll need a review from system-tests-reviewers: ask to one of youre co-worker familiar with the tested feature.
    • Framework is modified, or non obvious usage of it -> get a review from system-tests-core (slack)

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Task: enable the snapshot correlation tests for Ruby, per the blueprints
correlation project.

dd-trace-rb#6118 shares one sampling decision per trace and shipped in
2.49.0. Turn on Test_Debugger_Coordinated_Sampling and
Test_Debugger_Probe_Budgets::test_per_trace_budget from that release on
the weblogs that run the debugger scenario (rails72, rails80, uds-rails),
and add the /debugger/correlation and /debugger/correlation/loop/<count>
endpoints to the shared Ruby weblog controller they exercise, mirroring
the Go and .NET endpoints: the probed methods return 400ms apart, and
the loop sleeps one second per iteration. Map the two loop lines for
the Ruby line probes.

The three probe-budget tests keep xfail because the Ruby weblog has no
/debugger/budgets endpoint; declare them incomplete_test_app with that
reason instead of the previous class-wide missing_feature, which the
class gate now carries as the v2.49.0 version gate.
@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

manifests/ruby.yml                                                      @DataDog/system-tests-reviewers
tests/debugger/utils.py                                                 @DataDog/debugger
utils/build/docker/ruby/rails72/config/routes.rb                        @DataDog/system-tests-reviewers
utils/build/docker/ruby/rails80/config/routes.rb                        @DataDog/system-tests-reviewers
utils/build/docker/ruby/shared/rails/app/controllers/debugger_controller.rb  @DataDog/system-tests-reviewers

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 3241438 | Docs | View more details | Give us feedback!

@p-datadog
p-datadog marked this pull request as ready for review November 23, 2026 19:26
@p-datadog
p-datadog requested review from a team as code owners November 23, 2026 19:26
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T19:27:44.661344Z f4fbd6e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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.

2 participants