grpc-ecosystem / grpc-spring

Spring Boot starter module for gRPC framework.
https://grpc-ecosystem.github.io/grpc-spring/
Apache License 2.0
3.49k stars 821 forks source link

feat: Add gRPC client attempt metrics #1037

Closed DNVindhya closed 8 months ago

DNVindhya commented 8 months ago

This PR uses the underlying infrastructure added in #1021 and adds instrumentation for following metrics using Micrometer APIs.

Client per-attempt metrics

Client per-call metric

These metrics are not enabled yet. These can be enabled using GrpcGlobalClientInterceptor.

Related PRs:

DNVindhya commented 8 months ago

@ST-DDT Is there a recommended path to add classes that are common between Client and Server metrics? e.g. FakeClock (redefining it for now) will move based on your suggestion.