Repository navigation
feat(names): Add span name rules for rpc spans - #714
pabloDeputter wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Names
Other
Bug Fixes 🐛
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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.
giortzisg
left a comment
There was a problem hiding this comment.
As discussed in person, it might make sense to separate the generic RPC and AWS span names into two different templates. Without the additional context of this PR a person seeing the convention would think that {rpc.service}.{rpc.method} is the default one.
### Description boto3 spans now use `sentry.op = rpc` instead of `http.client`. Service extensions can (and will in the future) provide a more specific op with `get_span_op()`, e.g. `db` for DynamoDB. ### Why - boto3 span represents an AWS api call, not an HTTP request; the HTTP request is already captured as the as the `http.client` child - JS already also defaults AWS SDK spans to `rpc` It also lets these spans use new name and description rules in sentry-conventions, e.g. (getsentry/sentry-conventions#714, #717), e.g. `Lambda.Invoke billing` instead of `POST https://lambda.…`
An |

Description
Add span name rules for
rpcspans; follows OTel semconv:{rpc.service}.{rpc.method}for AWS SDK spans (https://opentelemetry.io/docs/specs/semconv/cloud-providers/aws-sdk/#aws-sdk-spans).{rpc.method}for general RPC spans with{rpc.system.name}as fallback ifrpc.methodis not available. (https://opentelemetry.io/docs/specs/semconv/rpc/rpc-spans/#name)Added additional context to the
rpc.serviceattribute as well since it's deprecated in OTel, but still set on AWS SDK spans.