Repository navigation
feat(rpc): add Connect v2 server error boundary - #27
Conversation
Add package rpc/connectv2 with NormalizeError and ServerErrorInterceptor for servers built on connectrpc.com/connect/v2. The interceptor wraps the whole server call, so it covers unary and streaming RPCs. Internal, unknown and unclassified errors are redacted. Remote errors from upstream peers now become internal errors. Context errors keep stable codes. Deprecate the Connect v1 rpc package in favor of rpc/connectv2. It stays available until the next major release. Move the observability correlation test to Connect v2.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Add package rpc/connectv2 with NormalizeError and ServerErrorInterceptor for servers built on connectrpc.com/connect/v2. The interceptor wraps the whole server call, so it covers unary and streaming RPCs. Internal, unknown and unclassified errors are redacted. Remote errors from upstream peers now become internal errors. Context errors keep stable codes.
Deprecate the Connect v1 rpc package in favor of rpc/connectv2. It stays available until the next major release. Move the observability correlation test to Connect v2.
Summary
Public and product boundaries
Verification
make checkpassedCommands and evidence:
AI assistance
Summary by CodeRabbit