fix(api): Disable otel rpc server attributes#3043
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
📝 WalkthroughWalkthroughThis change updates the configuration of telemetry interceptors by adding the Changes
Sequence Diagram(s)Service Peer Creation FlowsequenceDiagram
actor Client as "Caller"
participant S as "service.newPeer"
participant I as "otelconnect.NewInterceptor"
Client->>S: newPeer(ctx, key)
S->>I: NewInterceptor(tracerProvider, WithoutServerPeerAttributes)
alt Success
I-->>S: interceptor instance
S-->>Client: returns peer
else Error
I-->>S: error
S-->>Client: returns error
end
RPC Initialization FlowsequenceDiagram
actor Client as "Caller"
participant R as "rpc.New"
participant I as "otelconnect.NewInterceptor"
Client->>R: New()
R->>I: NewInterceptor(tracerProvider, trustRemoteOptions, WithoutServerPeerAttributes)
alt Success
I-->>R: interceptor instance
R-->>Client: returns service instance
else Error
I-->>R: error
R-->>Client: returns error
end
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Thank you for following the naming conventions for pull request titles! 🙏 |
By default OpenTelemetry RPC includes peer ports and names which increase metric cardinality by a significant amount. Setting the option WithoutServerPeerAttributes() on the interceptor removes those attributes. Signed-off-by: Ian Meyer (imeyer) <k@imeyer.io>
70dc0f9 to
f0fe3ec
Compare
By default OpenTelemetry RPC includes peer ports and names which increase metric cardinality by a significant amount. Setting the option WithoutServerPeerAttributes() on the interceptor removes those attributes.
Summary by CodeRabbit