-
Notifications
You must be signed in to change notification settings - Fork 1.4k
refactor(trace/semantics): lift conditional gRPC status fallback into mappings.json #50397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gh-worker-dd-mergequeue-cf854d
merged 15 commits into
main
from
feat/ehu/OTEL-2718-semantics-conditional-grpc-status
May 8, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b79923e
refactor(trace/semantics): lift conditional gRPC status fallback into…
edwardhu-datadog b31d473
test(trace/semantics): trim redundant and aspirational conditional tests
edwardhu-datadog 1abffb7
refactor(trace/semantics): keep existing Lookup* shapes; add conditio…
edwardhu-datadog 296e508
fix(trace/semantics): preserve pre-PR semconv precedence for rpc.system
edwardhu-datadog c26722a
test(trace/semantics): use production registry; tighten conditionMatches
edwardhu-datadog 332c27c
fix(trace/semantics): correct semconv introduction version for new RP…
edwardhu-datadog d546889
refactor(trace/semantics): make conditionMatches predicate flow linear
edwardhu-datadog f5d39d4
refactor(trace/semantics): rename v -> value in conditionMatches
edwardhu-datadog 1a66941
test(trace/semantics): rename TestConditionalLookup → TestGRPCStatusC…
edwardhu-datadog f7acab5
refactor(trace/semantics): drop unused no-predicate branch in conditi…
edwardhu-datadog 1900b28
refactor(trace/semantics): skip conditionsMatch when tag has no When …
edwardhu-datadog b16f23e
fix(trace/semantics): scope PR strictly to gRPC status routing
edwardhu-datadog 0afceb1
refactor(trace/semantics): type Condition.Eq as *string instead of any
edwardhu-datadog 023467b
Merge branch 'main' into feat/ehu/OTEL-2718-semantics-conditional-grp…
edwardhu-datadog fd8b5e5
Merge branch 'main' into feat/ehu/OTEL-2718-semantics-conditional-grp…
edwardhu-datadog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When an OTLP span has legacy
rpc.system=grpcon the span but the resource includes any non-emptyrpc.system.name, thispresent:falsecondition fails becauseOTelSpanAccessor.GetString("rpc.system.name")also checks resource attributes. The removed helper checked bothrpc.system.nameandrpc.systemin span attributes before consulting resource attributes, so mixed-version payloads like span-levelrpc.system=grpcplus resource-levelrpc.system.name=jsonrpcused to emitrpc.grpc.status_codeand now silently drop it.Useful? React with 👍 / 👎.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, but this only triggers when span and resource disagree about the RPC system — like span saying
rpc.system=grpcwhile resource saysrpc.system.name=jsonrpc. We don't have evidence any SDK actually does this; happy to revisit if we see it surface in real traffic.Also, this conforms with how we handle HTTPStatusCodes today