Documentation ¶
Overview ¶
ref: https://github.com/libp2p/go-libp2p/blob/master/p2p/transport/quic/tracer_metrics.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpRequestsPathIdClient *prometheus.CounterVec HttpRequestsPathIdServer *prometheus.CounterVec AuthzConnectiontClientId *prometheus.CounterVec AuthzConnectiontServerId *prometheus.CounterVec HTTPHistogramAppProcessId = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "appedge_inbound_rq_latency", Help: "The application latency to process a HTTP request by tuple of identity", Buckets: prometheus.ExponentialBuckets(0.001, 1.25, 20), }, []string{"myId", "downstreamId"}) HTTPHistogramNetworkLatencyId = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "appedge_outbound_rq_latency", Help: "The network latency between the request and the response by tuple of identity", Buckets: prometheus.ExponentialBuckets(0.001, 1.25, 20), }, []string{"myId", "upstreamId"}) )
Functions ¶
Types ¶
type MetricsTracer ¶
type MetricsTracer struct {
logging.NullTracer
}
func (*MetricsTracer) NegotiatedVersion ¶
func (m *MetricsTracer) NegotiatedVersion(chosen logging.VersionNumber, client, server []logging.VersionNumber)
need to be implemented - quic-go/qlog has these interfaces implemented
func (*MetricsTracer) TracerForConnection ¶
func (m *MetricsTracer) TracerForConnection(_ context.Context, p logging.Perspective, connID logging.ConnectionID) logging.ConnectionTracer
Click to show internal directories.
Click to hide internal directories.