Interface GrpcProxyServiceMetrics
- All Known Implementing Classes:
GrpcProxyMetrics
public interface GrpcProxyServiceMetrics
A provider of metrics for a gRPC proxy service.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessageDuration
(long nanos) Add a timing sample to the metrics.void
addRequestDuration
(long nanos) void
Update the failed request meter.void
Update the messages received meter.void
markSent()
Update the messages sent meter.void
Update the successful request meter.
-
Method Details
-
addRequestDuration
void addRequestDuration(long nanos) -
addMessageDuration
void addMessageDuration(long nanos) Add a timing sample to the metrics.- Parameters:
nanos
- the request time in nanos.
-
markSuccess
void markSuccess()Update the successful request meter. -
markError
void markError()Update the failed request meter. -
markSent
void markSent()Update the messages sent meter. -
markReceived
void markReceived()Update the messages received meter.
-