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
| Name | Type | Description |
|---|---|---|
| opts | ...grpcprometheus.ClientMetricsOption | Configuration 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
| Type | Description |
|---|---|
*grpcprometheus.ClientMetrics | The singleton instance of grpcprometheus.ClientMetrics. |