-
Couldn't load subscription status.
- Fork 117
Add IBM Instana Context Propagator #365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add IBM Instana Context Propagator #365
Conversation
|
Thanks for opening your first pull request! If you haven't yet signed our Contributor License Agreement (CLA), then please do so that we can accept your contribution. A link should appear shortly in this PR if you have not already signed one. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #365 +/- ##
============================================
- Coverage 82.17% 81.72% -0.46%
+ Complexity 1870 1745 -125
============================================
Files 137 134 -3
Lines 7822 7322 -500
============================================
- Hits 6428 5984 -444
+ Misses 1394 1338 -56 Flags with carried forward coverage won't be shown. Click here to find out more.
... and 28 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
@bobstrecansky , Thank you for triggering the CI for this PR. However, the CI did not run for my project because I forgot to include the project in the GitHub workflow. Could you please retrigger the CI actions? Additionally, I’ve noticed that some unrelated projects, such as Instrumentation/Psr15, Instrumentation/Psr16, and others, are failing their CI checks. Since these are not dependent on this PR, could you advise on how such failures should be handled? |
You can ignore the unrelated failures here. 👍 |
src/Propagation/Instana/tests/Unit/InstanaMultiPropagatorTest.php
Outdated
Show resolved
Hide resolved
|
I am not able to see these CI issues with local execution , However CI reports it . |
Co-authored-by: Chris Lightfoot-Wild <[email protected]>
|
Hmm. I wonder why make all didn’t catch those errors. Obviously missed something with psalm override attribute too for psalm. |
|
Many thanks @brettmc for approving the PR. I see that CI checks for the Instana in successful for all supported PHP versions ? Is this PR good to merge ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some final formatting bits I spotted, but that can always be done in your follow-up PR.
| } | ||
| Registry::registerTextMapPropagator( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | |
| Registry::registerTextMapPropagator( | |
| } | |
| Registry::registerTextMapPropagator( |
| } | ||
|
|
||
| if ($spanId && strlen($spanId) < 16) { | ||
| $spanId = str_pad($spanId, 16, '0', STR_PAD_LEFT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $spanId = str_pad($spanId, 16, '0', STR_PAD_LEFT); | |
| $spanId = str_pad($spanId, 16, '0', STR_PAD_LEFT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Will be addressed in the followup PR.
#370
| return (new NonRecordingSpan($spanContext)) | ||
| ->storeInContext($context); | ||
|
|
||
| } elseif (!$spanContext->isValid()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return (new NonRecordingSpan($spanContext)) | |
| ->storeInContext($context); | |
| } elseif (!$spanContext->isValid()) { | |
| return (new NonRecordingSpan($spanContext)) | |
| ->storeInContext($context); | |
| } elseif (!$spanContext->isValid()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Will be addressed in the followup PR.
#370
|
@brettmc @ChrisLightfootWild , where this Instana propagation package will be hosted on packagist.org. Thanks! |
Which problem is this PR solving?
This PR adds a vendor specific propagator for the vendor specific trace correlation headers used by Instana.
Short description of the changes
Add Instana propagator plus unit tests.