Skip to content

ASP-2043: Add typed gRPC built-in retry support to GrpcChannelConfig#93

Merged
aaron-steinfeld merged 3 commits intohypertrace:mainfrom
kunalvaswani123:ASP-2043
Apr 24, 2026
Merged

ASP-2043: Add typed gRPC built-in retry support to GrpcChannelConfig#93
aaron-steinfeld merged 3 commits intohypertrace:mainfrom
kunalvaswani123:ASP-2043

Conversation

@kunalvaswani123
Copy link
Copy Markdown
Contributor

@kunalvaswani123 kunalvaswani123 commented Apr 24, 2026

Summary

  • Add GrpcRetryPolicy — typed retry config (maxAttempts, backoff, retryable status codes)
  • Add GrpcServiceConfig — wraps GrpcRetryPolicy, owns conversion to gRPC service config map
  • Add serviceConfig: GrpcServiceConfig and enableRetry: boolean to GrpcChannelConfig as independent opt-ins
  • Wire both in GrpcChannelRegistry.configureAndBuildChannel() — no retry assumed from service config alone

Test plan

  • GrpcChannelRegistryRetryTest — starts a real in-process gRPC server that fails twice with UNAVAILABLE, succeeds on the 3rd attempt, and asserts the server was hit 3 times from a single client call

🤖 Generated with Claude Code

@kunalvaswani123 kunalvaswani123 requested a review from a team as a code owner April 24, 2026 05:00
@kunalvaswani123 kunalvaswani123 changed the title ASP-2043: Add grpc-retry-utils module and service config support in GrpcChannelConfig ASP-2043: Add serviceConfig support to GrpcChannelConfig for gRPC built-in retry Apr 24, 2026
…lt-in retry

- Add optional serviceConfig field to GrpcChannelConfig
- Wire defaultServiceConfig() + enableRetry() in GrpcChannelRegistry when serviceConfig is set
- Add test verifying channels with different service configs are cached independently

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

AI-Session-Id: 75f3864c-dc2c-4e44-b4f3-b23c980f2ea6
AI-Tool: claude-code
AI-Model: unknown
…nfig and GrpcRetryPolicy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

AI-Session-Id: 75f3864c-dc2c-4e44-b4f3-b23c980f2ea6
AI-Tool: claude-code
AI-Model: unknown
@kunalvaswani123 kunalvaswani123 changed the title ASP-2043: Add serviceConfig support to GrpcChannelConfig for gRPC built-in retry ASP-2043: Add typed gRPC built-in retry support to GrpcChannelConfig Apr 24, 2026
Comment thread .gitignore Outdated
…t-in, in-process retry test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

AI-Session-Id: 75f3864c-dc2c-4e44-b4f3-b23c980f2ea6
AI-Tool: claude-code
AI-Model: unknown
@aaron-steinfeld aaron-steinfeld enabled auto-merge (squash) April 24, 2026 15:51
@aaron-steinfeld aaron-steinfeld merged commit 48511e9 into hypertrace:main Apr 24, 2026
4 checks passed
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.

2 participants