Repository navigation
Conversation
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.
Contributor
|
|
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 3241438 | Docs | View more details | Give us feedback! |
p-datadog
marked this pull request as ready for review
November 23, 2026 19:26
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_SamplingandTest_Debugger_Probe_Budgets::test_per_trace_budgetare enabled for Ruby fromv2.49.0on the weblogs that run the debugger scenario for Ruby (rails72, rails80, uds-rails), the same shape #7425 used to enable .NET.GET /debugger/correlation(callsCorrelation,CorrelationMiddleandCorrelationLeaf, spaced 400ms apart) andGET /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.missing_featuregate onTest_Debugger_Probe_Budgetsbecomes thev2.49.0version gate, and the three budget tests whose/debugger/budgetsendpoint the Ruby weblog lacks are declaredincomplete_test_app (weblog has no /debugger/budgets endpoint).Workflow
system-tests-reviewers: ask to one of youre co-worker familiar with the tested feature.system-tests-core(slack)🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟