NET 10 Changes PropagationData Sampling Rule, Breaking Inherited Recorded Flag
Microsoft changed a tracing rule in .NET 10 that affects how child activities inherit recording state from their parents. Previously, a child activity using ActivitySamplingResult.PropagationData would automatically become Recorded if its parent carried the recorded flag. Under .NET 10, the local sampling decision now takes precedence, meaning a PropagationData child will have both Recorded and IsAllDataRequested set to false even under a recorded parent. Microsoft made this change to align behavior with the OpenTelemetry contract and ensure the sampling result accurately reflects the local decision. Developers using custom ActivityListeners or samplers are advised to test this behavior explicitly, as the change can silently break existing tracing logic.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in