-
Beta Was this translation helpful? Give feedback.
Answered by
Aneurysm9
Mar 31, 2021
Replies: 1 comment 3 replies
-
The specification requires that SpanContext is immutable. Resampling a span in process is potentially dangerous since other spans may have been created from it assuming the original sampling decision which can result in broken traces or otherwise lost data. It is generally only safe to either perform head sampling in the SDK or tail sampling, with all spans in a trace available for resampling, in the collector or other span aggregator. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Aneurysm9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The specification requires that SpanContext is immutable. Resampling a span in process is potentially dangerous since other spans may have been created from it assuming the original sampling decision which can result in broken traces or otherwise lost data. It is generally only safe to either perform head sampling in the SDK or tail sampling, with all spans in a trace available for resampling, in the collector or other span aggregator.