temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Replace metrics and retryable client with client interceptors

Open yycptt opened this issue 2 years ago • 0 comments

Please check the comment here: https://github.com/temporalio/temporal/pull/3172#discussion_r935047507

Currently we use code generation for generating metrics/retryable client (a wrapper for basic/raw service clients) for logging/metrics and retry rpc calls. We have the same logic at the server/receiver end but is achieved via grpc interceptors.

Looks like the same approach can be applied to client side as well, and avoid the complexity of code generation and the cost for maintaining it.

yycptt avatar Aug 04 '22 18:08 yycptt