Repository navigation
WIP feat(otel): Enable OTel semantics tests for Java weblog applications - #7919
Draft
zacharycmontoya wants to merge 12 commits into
Draft
zacharycmontoya wants to merge 12 commits into
zacharycmontoya wants to merge 12 commits into
Conversation
Contributor
|
|
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 20 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)❄️ No new flaky tests detected Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 0beaf76 | Docs | View more details | Give us feedback! |
…f a span is exported it is sampled. For completeness, we should set the 32-bit flags field to match the value of the W3C traceparent flags field, but we don't need/use it right now.
…o accept an optional method argument, needed for OTel HTTP semantics
… set DD_METRICS_OTEL_ENABLED=true because we are configuring the metrics export with the OTEL_EXPORTER_OTLP_* environment variables
…fail due to a redirect
…hod, to test a non-default OpenTelemetry HTTP method, and update the java manifest accordingly
…Sec specifically in the OTEL_SEMANTICS_OTLP_SAMPLING_RULES scenario
zacharycmontoya
force-pushed
the
zach.montoya/java-otel-http
branch
from
October 26, 2026 21:56
4d2cea4 to
7aa15eb
Compare
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 tests assert that the Datadog SDKs consistently emit the correct set of span attributes, span (resource) names, and span statuses when OTel semantics is enabled. This update asserts the behaviors introduced in DataDog/dd-trace-java#12765, with known follow-up work needed for
akka-httpandplayframeworks.Changes
Overall, this PR runs the test cases in
test_otel_http_semantics.pyagainst dd-trace-java. Several other changes were needed to accomplish this:_span_is_sampledcheck used in theOTEL_SEMANTICS_OTLP_SAMPLING_RULES. This check was intended to assert that spans were sampled, but this is unneeded because OTLP spans that are exported from the SDK, by definition, are sampled. This is not the case with MsgPack spans where all spans are sent to the local agentDD_METRICS_OTEL_ENABLED=trueto the set of environment variables for theOTEL_SEMANTICS_OTLP_TRACE_METRICSscenarioGET /make_distant_callin all Java weblog applications to accept an optionalmethodparameter, which is tested in the OTel HTTP Semantics test casesWorkflow
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 🛟
Notes
This is intended to fail in the pull request CI because the changes are not merged, but they can be run locally with dev branches of dd-trace-java following the
binaries.mddocumentation