temporal
temporal copied to clipboard
Replace metrics and retryable client with client interceptors
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.