cockroachdb / cockroachdb/cockroach

drpc: flatten interceptor call chains when possible

Open
#148,496 0 comments 0 reactions 0 assignees View on GitHub
A-server-networking C-enhancement T-db-server
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

In gRPC, interceptors are chained together — a behavior that's crucial for many use cases. For example, latency metrics need to capture the full duration of the call chain, and the same applies to distributed tracing. However, these deep interceptor chains consume significant stack frames (in the profile) and create noise during debugging or incident analysis. As part of the DRPC integration effort, we should explore opportunities to _flatten the interceptor call chain when possible_.

![Image](https://github.com/user-attachments/assets/f3fe45dc-5c30-43c8-89ce-365c0ba82393)

Jira issue: CRDB-51650

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.