Documentation ¶
Index ¶
- func DefaultConnectionTracer(_ context.Context, p logging.Perspective, _ logging.ConnectionID) *logging.ConnectionTracer
- func NewClientConnectionTracerWithRegisterer(registerer prometheus.Registerer) *logging.ConnectionTracer
- func NewServerConnectionTracerWithRegisterer(registerer prometheus.Registerer) *logging.ConnectionTracer
- func NewTracer() *logging.Tracer
- func NewTracerWithRegisterer(registerer prometheus.Registerer) *logging.Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConnectionTracer ¶
func DefaultConnectionTracer(_ context.Context, p logging.Perspective, _ logging.ConnectionID) *logging.ConnectionTracer
DefaultConnectionTracer returns a callback that creates a metrics ConnectionTracer. The ConnectionTracer returned can be set on the quic.Config for a new connection.
func NewClientConnectionTracerWithRegisterer ¶
func NewClientConnectionTracerWithRegisterer(registerer prometheus.Registerer) *logging.ConnectionTracer
NewClientConnectionTracerWithRegisterer creates a new connection tracer for a connection dialed on the client side with a given Prometheus registerer.
func NewServerConnectionTracerWithRegisterer ¶
func NewServerConnectionTracerWithRegisterer(registerer prometheus.Registerer) *logging.ConnectionTracer
NewServerConnectionTracerWithRegisterer creates a new connection tracer for a connection accepted on the server side with a given Prometheus registerer.
func NewTracer ¶
NewTracer creates a new tracer using the default Prometheus registerer. The Tracer returned from this function can be used to collect metrics for events happening before the establishment of a QUIC connection. It can be set on the Tracer field of quic.Transport.
func NewTracerWithRegisterer ¶
func NewTracerWithRegisterer(registerer prometheus.Registerer) *logging.Tracer
NewTracerWithRegisterer creates a new tracer using a given Prometheus registerer.
Types ¶
This section is empty.