-
Notifications
You must be signed in to change notification settings - Fork 651
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
adding support for Jaeger propagator #1219
Conversation
|
@Rashmi-K-A are you still interested in taking on this work? #1084 has been resolved which should unblock you. |
Hey, yes @codeboten, I noticed just today that it has been resolved. I'll get working and maybe have a PR ready by this weekend! |
@codeboten The Jaeger format talks about a 'firehose' flag here. Should I be searching for a tag with a key name called firehose? I couldn't find enough information about it to implement that part. |
It's a good question, i don't see any mentions of this anywhere in the js implementation. Looking through spec issues i did find this one: open-telemetry/opentelemetry-specification#231 But it looks like it's targeted for after GA, so it's probably ok to skip the implementation here. |
Cool, then I'll just add some final touches here and mark this PR as ready for review |
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
for key in getter.keys(carrier) | ||
if key.startswith(self.BAGGAGE_PREFIX) | ||
] | ||
for key in baggage_keys: |
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.
Worth adding support for the BAGGAGE_HEADER alternative (as a follow-up). See https://github.com/jaegertracing/jaeger-client-python/blob/master/jaeger_client/codecs.py#L116
@Rashmi-K-A |
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.
Thanks! pretty good, I think there's a few lingering questions, maybe a couple blockers here (e.g. invalid parsing of flags)
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/tests/trace/propagation/test_jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/tests/trace/propagation/test_jaeger_format.py
Outdated
Show resolved
Hide resolved
Also a changelog entry please! |
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.
Looking good! Just minor comments.
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_format.py
Outdated
Show resolved
Hide resolved
@Rashmi-K-A |
hey @lzchen, I haven't gotten around to completing all of these changes yet, I'll work on getting them done by this weekend! |
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.
Thanks for addressing some of the comments! I think there's some more work that could be done, but this looks to provide most of the desired functionality. Thanks!
opentelemetry-sdk/src/opentelemetry/sdk/trace/propagation/jaeger_propagator.py
Outdated
Show resolved
Hide resolved
I have made one final round of changes. The B3 filename and the classname must be changed, and the extract function it uses must be imported from init.py to prevent redundancy. I'll raise an issue for that once this PR is done. |
@ocelotl & @carlosalberto please review and approve if your comments have been addressed! |
My changes have been addressed, but the test cases are failing, @Rashmi-K-A please take a look. |
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.
Test cases are failing, please fix that @Rashmi-K-A 👍
@ocelotl if you're ok with the changes, please approve. we will block on merging until the tests pass! |
The test cases started failing after merging changes from master (which is weird because my code is in a file that's not even in master), I ll take a look within a couple of days. |
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.
I am ok with the changes, approving tests can be fixed before merging
@codeboten I fixed the errors, it turns out the propagator wasn't implementing a function added to its parent class in a recent change. It's working now! Let me know if I missed out something |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #1103
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: