Skip to main content

GrpcClientMetrics

Returns the gRPC client metrics singleton, initialized on the first call. Options are ignored if already initialized.

def GrpcClientMetrics(
opts: ...grpcprometheus.ClientMetricsOption
) - > *grpcprometheus.ClientMetrics

Returns the gRPC client metrics singleton initialized on the first call. Subsequent calls will return the same singleton instance, ignoring any provided options.

Parameters

NameTypeDescription
opts...grpcprometheus.ClientMetricsOptionConfiguration options for the gRPC client metrics. These options are only applied during the first initialization of the singleton and are ignored on subsequent calls.

Returns

TypeDescription
*grpcprometheus.ClientMetricsThe singleton instance of grpcprometheus.ClientMetrics.