Skip to content

Conversation

@crazyfrankie
Copy link

Describe what this PR does / why we need it

Add Sentinel adapter for tRPC-Go framework.

Does this pull request fix one issue?

NONE

Describe how you did it

  1. Implemented SentinelServerFilter that wraps tRPC server handlers with Sentinel entry for inbound traffic control
  2. Implemented SentinelClientFilter that wraps tRPC client calls with Sentinel entry for outbound traffic control
  3. Added Option pattern for customizing resource extraction and block fallback behavior
  4. Default resource name format: {CalleeServiceName}:{RPCName}
  5. Added comprehensive unit tests following the existing adapter test patterns

Describe how to verify it

cd pkg/adapters/trpc
go test -v ./...

Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Jan 9, 2026

CLA assistant check
All committers have signed the CLA.

@LearningGp
Copy link
Collaborator

CLA should be signed

@crazyfrankie
Copy link
Author

CLA should be signed

ok, it has been signed.

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.

3 participants