-
Notifications
You must be signed in to change notification settings - Fork 624
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 SDK Extension for AWS XRay Vendor #130
Conversation
b0e30ce
to
f391cd7
Compare
f391cd7
to
5f048bd
Compare
6b551f2
to
d8faa98
Compare
Can you edit the description to remove this section? it sounds like it was decided that this belongs in contrib. |
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! I think as a minimum blocker the version discrepancy should be resolved, but there's also a lot of refactoring that can be done in the extractor in particular to be more python-idiomatic, and more performant as a result.
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
sdk-extension/opentelemetry-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/version.py
Show resolved
Hide resolved
18c529a
to
06c0201
Compare
@toumorokoshi Thank you so much for taking the time to leave really helpful comments, I'm really happy with the changes :) Please let me know if I addressed them all! |
...emetry-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/aws_xray_ids_generator.py
Outdated
Show resolved
Hide resolved
sdk-extension/opentelemetry-sdk-extension-aws/tests/__init__.py
Outdated
Show resolved
Hide resolved
9b1bfbf
to
d9a2c8c
Compare
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! Have a few comments that are still worth looking, but all blocking comments are resolved.
...emetry-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/aws_xray_ids_generator.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
sdk-extension/opentelemetry-sdk-extension-aws/tests/__init__.py
Outdated
Show resolved
Hide resolved
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 the work on this! And thanks for the help @toumorokoshi!
...emetry-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/aws_xray_ids_generator.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
sdk-extension/opentelemetry-sdk-extension-aws/tests/trace/propagation/test_aws_xray_format.py
Outdated
Show resolved
Hide resolved
sdk-extension/opentelemetry-sdk-extension-aws/tests/trace/propagation/test_aws_xray_format.py
Outdated
Show resolved
Hide resolved
) | ||
|
||
self.assertEqual( | ||
get_extracted_span_context(actual_context_encompassing_extracted), |
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.
And similarly, here it's hard to understand the test since it refers to this actual_context_encompassing_extracted
and build_test_context
, not sure what that is without a lot of jumping
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 changed it up a bit! I decided to keep get_extracted_span_context
since it's a 1 line function which helps avoid repeated code.
I split build_test_context
into build_test_current_context
(to simplify the inject
tests) and build_test_span_context
because it is highly reused and hopefully easy to understand. I think it is cleaner than having the SpanContext
constructor multiple times, but let me know what you think!
e53ca45
to
7dee36c
Compare
...y-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/trace/propagation/aws_xray_format.py
Outdated
Show resolved
Hide resolved
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.
Nice! Just some unblocking comments.
fe7353f
to
dcc8f04
Compare
dcc8f04
to
c0a3ea9
Compare
Description
Following our discussion from the SIG meetings, reopening this PR that was on Core here in the Contrib now that the Contrib repo is much farther along.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Added unit tests to verify expected behavior of these components. They validate the ID generator and Propagator work under multiple scenarios.
Checklist: