Skip to content

Include unicode type for annotation values #235

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 1 commit into from
Aug 5, 2020

Conversation

pbzweihander
Copy link

Description of changes:

The AWS X-Ray documentation says the annotation value can be a unicode type. (https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-python-segment.html#xray-sdk-python-segment-annotations) But aws-xray-sdk-python does not allow unicode type for annotation values in Python 2. I think this is a bug.

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 Jul 16, 2020

Codecov Report

Merging #235 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #235   +/-   ##
=======================================
  Coverage   79.36%   79.36%           
=======================================
  Files          80       80           
  Lines        3159     3159           
=======================================
  Hits         2507     2507           
  Misses        652      652           
Impacted Files Coverage Δ
aws_xray_sdk/core/utils/compat.py 95.23% <100.00%> (ø)

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 a2e4bc6...7a49326. 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.

LGTM

@willarmiros
Copy link
Contributor

@pbzweihander Can you address the Git out-of-date issue so we can merge? Thanks!

@pbzweihander pbzweihander force-pushed the unicode-annotation-values branch from 5b62680 to ec31fa2 Compare July 24, 2020 05:46
@pbzweihander
Copy link
Author

@willarmiros I rebased with the latest master branch!

@srprash
Copy link
Contributor

srprash commented Jul 24, 2020

Checks are failing due to a new version of pymysql. This will be fixed soon. Thanks @pbzweihander for your contribution!

@srprash
Copy link
Contributor

srprash commented Aug 4, 2020

@pbzweihander Can you sync the PR with the latest branch so that we can get this merged? Thanks!

@pbzweihander pbzweihander force-pushed the unicode-annotation-values branch from ec31fa2 to 7a49326 Compare August 5, 2020 02:48
@pbzweihander
Copy link
Author

@srprash I rebased with the latest master branch, and the tests passed, too!

@srprash srprash merged commit 638f39e into aws:master Aug 5, 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.

4 participants