Skip to content

streaming_threshold not None check. Also dropping loop parameter from aiobotocore tests. #205

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

Merged
merged 6 commits into from
Mar 4, 2020

Conversation

srprash
Copy link
Contributor

@srprash srprash commented Feb 25, 2020

Issue #, if available: 201

Description of changes:
While setting the streaming_threshold in xray_recorder.configure(), if the value is 0, the condition evaluates to false if not checked for None.

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

@codecov-io
Copy link

codecov-io commented Feb 25, 2020

Codecov Report

Merging #205 into master will decrease coverage by 0.37%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #205      +/-   ##
==========================================
- Coverage   83.92%   83.54%   -0.38%     
==========================================
  Files          77       77              
  Lines        3004     2924      -80     
==========================================
- Hits         2521     2443      -78     
+ Misses        483      481       -2
Impacted Files Coverage Δ
aws_xray_sdk/core/recorder.py 86.41% <100%> (-1.05%) ⬇️
aws_xray_sdk/core/sampling/connector.py 47.94% <0%> (-2.71%) ⬇️
aws_xray_sdk/core/emitters/udp_emitter.py 61.11% <0%> (-2.05%) ⬇️
aws_xray_sdk/sdk_config.py 86.66% <0%> (-1.57%) ⬇️
aws_xray_sdk/core/sampling/reservoir.py 57.69% <0%> (-1.57%) ⬇️
aws_xray_sdk/core/sampling/sampling_rule.py 90.9% <0%> (-1.05%) ⬇️
aws_xray_sdk/core/sampling/sampler.py 63.01% <0%> (-0.99%) ⬇️
aws_xray_sdk/core/sampling/local/sampling_rule.py 93.61% <0%> (-0.83%) ⬇️
aws_xray_sdk/ext/dbapi2.py 88.63% <0%> (-0.73%) ⬇️
... and 13 more

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 37e57bb...9b2704d. Read the comment docs.

tox.ini Outdated
@@ -98,4 +98,4 @@ commands =

[flake8]
max-line-length=120
exclude=tests
exclude=tests
Copy link
Contributor

@bhautikpip bhautikpip Mar 3, 2020

Choose a reason for hiding this comment

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

Nit: Can you add a new line here?

@bhautikpip bhautikpip self-requested a review March 3, 2020 22:47
Copy link
Contributor

@bhautikpip bhautikpip left a comment

Choose a reason for hiding this comment

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

Looks good!

@srprash srprash changed the title streaming_threshold not None check streaming_threshold not None check. Also dropping loop parameter from aiobotocore tests. Mar 3, 2020
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.

"failed to send data to X-Ray daemon." -> "Message too long"
3 participants