-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: implement UnaryServerInterceptor chaining.
Add a WithChainUnaryServerInterceptor server option to allow using more that one server sid interceptor which will then get chained an invoked in the order given. This should allow us to implement opentelemetry instrumentation as interceptors yet allowing users to keep instrumenting their server calls in other ways at the same time. Also, change WithUnaryServerInterceptor to implicitly chain the given interceptors if it is used more than once among the server options. Signed-off-by: Krisztian Litkey <[email protected]>
- Loading branch information
Showing
2 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters