Skip to content

feat(names): Add span name rules for rpc spans - #714

Open
pabloDeputter wants to merge 3 commits into
mainfrom
pablo/aws-rpc-span-names
Open

pabloDeputter wants to merge 3 commits into
mainfrom
pablo/aws-rpc-span-names

Conversation

@pabloDeputter

Copy link
Copy Markdown
Member

Description

Add span name rules for rpc spans; follows OTel semconv:

@vercel

vercel Bot commented Oct 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 13, 2026 7:32pm UTC

Request Review

@github-actions

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (attributes) Add http.request.duration by loewenheim in #697
  • (names) Add span name rules for rpc spans by pabloDeputter in #714

Internal Changes 🔧

  • (repo) Update CODEOWNERS to include @giortzisg by Lms24 in #708

🤖 This preview updates automatically when you update the PR.

@pabloDeputter
pabloDeputter marked this pull request as ready for review October 14, 2026 08:11

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 584e7a6. Configure here.

Comment thread model/name/rpc.json
"is_in_otel": true,
"otel_notes": "OpenTelemetry names RPC spans `{rpc.method}`, falling back to `{rpc.system.name}` if `rpc.method` is unavailable or set to `_OTHER`. AWS SDK spans are named `{rpc.service}.{rpc.method}`, which the first template matches.",
"ops": ["rpc"],
"templates": ["{{rpc.service}}.{{rpc.method}}", "{{rpc.method}}", "{{rpc.system.name}}", "RPC call"],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

RPC template order overrides method names

Medium Severity

The first template wins whenever both rpc.service and rpc.method are present, so general RPC spans are named {rpc.service}.{rpc.method} instead of {rpc.method}. Current OTel instrumentations still emit both attributes by default, and rpc.method is already the fully-qualified name, so the combined form also duplicates the service.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 584e7a6. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So spans that have "fully-qualified" rpc.method don't have rpc.service, so they fall back to {{rpc.method}} as is expected.

This branch was successfully deployed

1 active deployment
Preview — 584e7a60 Deployed Oct 13, 2026 by vercel[bot]
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.

1 participant