[Tracing] Add test and endpoints to test OTEL Drop-In Support of the OpenTelemetry Propagators API #3782
+99
−2
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
We learned that there was an issue with this support in the .NET tracing library, so this new test/endpoint will identify whether other tracers have the same class of issue.
In the .NET scenario, the customer can use the OpenTelemetry Propagators API (implemented in the OpenTelemetry API package) to manually propagate context. When the OpenTelemetry SDK is configured (using the OpenTelemetry SDK package) in the application, the default propagator provided by the OpenTelemetry Propagators API is provided a default implementation, so propagation works as expected. However, when the OpenTelemetry SDK is removed and the user relies on the .NET tracer's OTEL Drop-In Support, the default propagator provided by the OpenTelemetry Propagators API is a no-op, resulting in no propagation happening.
Changes
/otel_drop_in_default_propagator_extract
/otel_drop_in_default_propagator_inject
Test_Otel_Drop_In_Default_Propagator
with test cases:test_propagation_extract
test_propagation_inject
Workflow
codeowners
file quickly.🚀 Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present