fix(instr-undici): respect requireParent flag when INVALID_SPAN_CONTEXT is used#2273
Merged
david-luna merged 2 commits intoopen-telemetry:mainfrom Jun 19, 2024
Merged
Conversation
Contributor
|
Hi @reberhardt7 1st of all thanks for contributing to OpenTelemetry :) Could you please sign the CLA so we can proceed on moving your PR forward? Thanks! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2273 +/- ##
==========================================
- Coverage 90.97% 90.29% -0.68%
==========================================
Files 146 147 +1
Lines 7492 7246 -246
Branches 1502 1504 +2
==========================================
- Hits 6816 6543 -273
- Misses 676 703 +27
|
Contributor
Author
|
@david-luna I've signed the CLA now. Thank you :) |
cf10ea0 to
0506cea
Compare
david-luna
approved these changes
Jun 17, 2024
Contributor
Author
|
@david-luna thanks for the review! Would you be the right person to take a look at this analogous instrumentation-http PR, or would that be someone else? |
Merged
Contributor
|
@reberhardt7 I can give my review and notice the members of the SIG to get another approval |
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.
Which problem is this PR solving?
This PR mirrors this fix in the http instrumentation: open-telemetry/opentelemetry-js#4788
Short description of the changes
This checks whether the parent span is recording, and does not create a real child span if the parent isn't recording.