Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 array attributes to Zipkin exporter #1285
Adding support for array attributes to Zipkin exporter #1285
Changes from 4 commits
c10311a
83a868c
8d3f204
779b090
b31c881
1033a76
1d3a63f
95dfae4
0082859
d82fb30
a2f1c8d
75edd7d
014f5e4
2a5c4b3
85ef28c
51d8024
a226e19
907ead5
32d68e8
7fc3ac9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
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.
nit L354 to 357 repeated here, could be refactored. One complication is sequence attributes are allowed to have
None
.Could also combine the two conditions
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.
Simplified the formatting as recommended but didn't refactor the duplication as it's small.
I also changed the logic to silently skip invalid sequence elements versus completely failing so that we're passing along as much data s possible.
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.
Is
max_tag_value_length
supposed to be encoded byte length or string length?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.
We're outputting as ASCII with json.dumps() so one and the same.
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'm not sure actually so I checked the python docs:
So I think if the escape sequences are long, you could get longer length. I think this is OK tho 😄 Maybe just update
max_tag_value_length
docstring to say its string length if not specified?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.
To avoid these long testing sequences, may I suggest: