Skip to content

fix(tracing): do not derive trace level from W3C sampled flag - #542

Merged
arjun-rajappa merged 1 commit into
masterfrom
fix/w3c-sampled-level
Nov 3, 2026
Merged

arjun-rajappa merged 1 commit into
masterfrom
fix/w3c-sampled-level

Conversation

@arjun-rajappa

Copy link
Copy Markdown
Contributor

Why

Foreign W3C traceparent sampled flags were previously being used to infer Instana trace level (and trace suppression) when X-Instana-L was absent. Instana trace level and suppression decisions should be governed strictly by Instana headers rather than foreign W3C trace flags.

What

Stop setting context[:level] based on the W3C traceparent sampled bit
when X-Instana-L is absent, ensuring trace suppression and level
handling are driven exclusively by Instana headers.

Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
@arjun-rajappa
arjun-rajappa requested a review from a team November 2, 2026 16:15
@arjun-rajappa arjun-rajappa self-assigned this Nov 2, 2026
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@pvital pvital left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

@arjun-rajappa
arjun-rajappa merged commit ff4cd71 into master Nov 3, 2026
232 checks passed
@arjun-rajappa
arjun-rajappa deleted the fix/w3c-sampled-level branch November 3, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants