Added sampling options when an inbound traceparent exists #2279
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 config options for how to sample when we have sampling data from an upstream entity.
Possible values:
default: New Relic's standard sampling rules will be used.
always_on: Always sample spans in this case.
always_off: Always skip sampling in this case.
YML config
So, setting
remote_parent_sampled
toalways_on
would tell the agent to try and always sample anything that an upstream entity told us was sampled, until the sampling reservoir is full.Or, setting
remote_parent_not_sampled
toalways_off
would tell the agent to not bother sampling anything if the upstream entity told us that it was not sampled.