feat(ruby) : enable DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT#7076
Conversation
|
|
This comment has been minimized.
This comment has been minimized.
9f4bcd1 to
47c40dd
Compare
…arity on tracers already supporting PROPAGATION_BEHAVIOR_EXTRACT
|
@Strech Discussion in DataDog/dd-trace-rb#5844 brought the addition of a new system test which applies to the ruby tracer. It might be worth another review |
… OTel endpoint Only spring-boot variants (sharing App.java) and rails72 (only Ruby weblog with the opentelemetry gem) have the /otel_drop_in_extract_and_make_distant_call endpoint. Mark vertx4 and play (Java) and all non-rails72 weblogs (Ruby) as incomplete_test_app. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…vior_Restart_Otel vertx3 does not implement the /otel_drop_in_extract_and_make_distant_call endpoint, same as vertx4 and play which were already marked incomplete_test_app.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7a3d8e6eaa
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # Fallback: return whichever span has span links | ||
| for span in spans: | ||
| if retrieve_span_links(span) is not None: | ||
| return span | ||
| return spans[0] |
There was a problem hiding this comment.
When the OTel span is missing or named differently, this fallback can select the auto-instrumented HTTP server span because that span also has restart span links in TRACING_CONFIG_NONDEFAULT. In that scenario the assertions below still validate the HTTP entry span and outbound propagation, so the new tests can pass without ever proving that otel_extract_distant_call was created through the OTel API. Please fail if the span named/resource otel_extract_distant_call is not present, or otherwise identify it unambiguously.
Useful? React with 👍 / 👎.
Motivation
This PR enables the test on mentioned in APMAPI-1941 RFC
related PR on dd-trace-rb
Changes
DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACTkey.DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT=restartfor the OTel path (enabled on dotnet, Java and the newly implementer ruby feature)Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present