WIP feat(otel): Enable OTel semantics tests for Java weblog applications - #7919
Draft
zacharycmontoya wants to merge 4 commits into
Draft
zacharycmontoya wants to merge 4 commits into
zacharycmontoya wants to merge 4 commits into
Conversation
…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
Contributor
|
|
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 2 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 811f043 | Docs | View more details | Give us feedback! |
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.
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