metrics

package
v0.48.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConnectionTracer

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

func NewTracer() *logging.Tracer

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL