Skip to content
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

no op trace id generation #293

Merged
merged 6 commits into from
Apr 28, 2021
Merged

no op trace id generation #293

merged 6 commits into from
Apr 28, 2021

Conversation

bhautikpip
Copy link
Contributor

Issue #, if available:

Description of changes:

By merging this PR X-Ray Python SDK will generate no op trace and entity id for upsampled requests and secure random id for sample requests. However, customer can choose to generate secure random trace and entity ids for all the requests by setting AWS_XRAY_NOOP_ID environment variable as False.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2021

Codecov Report

Merging #293 (b19c354) into master (1294dee) will increase coverage by 0.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #293      +/-   ##
==========================================
+ Coverage   79.63%   79.81%   +0.17%     
==========================================
  Files          83       84       +1     
  Lines        3276     3295      +19     
==========================================
+ Hits         2609     2630      +21     
+ Misses        667      665       -2     
Impacted Files Coverage Δ
aws_xray_sdk/core/models/dummy_entities.py 88.88% <100.00%> (+2.22%) ⬆️
aws_xray_sdk/core/models/entity.py 94.19% <100.00%> (+0.07%) ⬆️
aws_xray_sdk/core/models/noop_traceid.py 100.00% <100.00%> (ø)
aws_xray_sdk/core/recorder.py 87.45% <0.00%> (+0.33%) ⬆️
aws_xray_sdk/core/streaming/default_streaming.py 100.00% <0.00%> (+3.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1294dee...b19c354. Read the comment docs.

Copy link
Contributor

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly minor callouts

README.md Outdated Show resolved Hide resolved
aws_xray_sdk/core/models/dummy_entities.py Outdated Show resolved Hide resolved
aws_xray_sdk/core/models/dummy_entities.py Outdated Show resolved Hide resolved
aws_xray_sdk/core/models/dummy_entities.py Outdated Show resolved Hide resolved
tests/test_traceid.py Outdated Show resolved Hide resolved
@bhautikpip bhautikpip requested a review from willarmiros April 27, 2021 18:12
Copy link
Contributor

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for changes!

@bhautikpip bhautikpip merged commit 894b419 into aws:master Apr 28, 2021
Hargrav3s pushed a commit to Gavant/aws-xray-sdk-python that referenced this pull request Mar 22, 2022
* no op trace id generation

* added clean up in tests and minor changes

* modified typo

* added checking false only conditions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants