Documentation
¶
Index ¶
- func GRPCServerInterceptor() grpc.UnaryServerInterceptor
- func HTTPMetricsMiddleware() echo.MiddlewareFunc
- func RecordHTTPRequest(method, path string, latency time.Duration, status int)
- func RecordTPS(ctx context.Context, tpsValue float64)
- func RecordTransaction(ctx context.Context, latency time.Duration, success bool)
- func UpdatePeerCount(ctx context.Context, count int64)
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCServerInterceptor ¶
func GRPCServerInterceptor() grpc.UnaryServerInterceptor
func HTTPMetricsMiddleware ¶
func HTTPMetricsMiddleware() echo.MiddlewareFunc
func RecordHTTPRequest ¶
func RecordTransaction ¶
Usage examples
func UpdatePeerCount ¶
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func (*Metrics) PrometheusURL ¶
Click to show internal directories.
Click to hide internal directories.