4.x Associate tracer-level tags with Jaeger process level (instead of span level) #8764
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.
Description
Resolves #8763
The basics of the PR are the same as in the 3.x PR #7027 except that this PR also adds a test (which involves adding a test in-memory span processor which the test can query.) I added the unit test before fixing the code and the test failed pre-fix, passed post-fix.
Because of how the Jaeger code sets up the
OpenTelemetry
instance, the PR also adds a non-public method toJaegerTracerBuilder
allowing the caller to add span exporters programmatically so the test can add the in-memory collector.I also manually started up
jaeger-all-in-one
locally and then ran the new unit test. The Jaeger UI now properly shows the tracer-level tag at the process level (not the span level).Documentation
Bug fix; no doc impact.