NH-11236 sampler creates Service Entry Internal KVs #12
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.
Here the custom Sampler creates Service Entry Internal KVs by setting them as attributes only for the root span:
I've also tidied the
calculate_attributes
a little bit to avoid ambiguity in new attributes assignment.I've done some manual testing, with resulting exported traces with those KVs recorded on this doc: https://swicloud.atlassian.net/wiki/spaces/NIT/pages/2893414559/2022-04-13+service+entry+internal+KVs+testing It doesn't really cover the different
SampleSource
results possible though. Would that be liboboe scope or in this PR's scope?This PR is to merge into
add-custom-propagator
branch at the moment because this one hasn't been merged yet #11 But I can change the destination if this one needs lots of work too! Please let me know and/or if I need to do more testing.