Documentation ¶
Index ¶
- func DefaultConnectionTracer(_ context.Context, p logging.Perspective, connID logging.ConnectionID) *logging.ConnectionTracer
- func DefaultTracer(ctx context.Context, p logging.Perspective, connID logging.ConnectionID) *logging.ConnectionTracer
- func NewConnectionTracer(w io.WriteCloser, p logging.Perspective, odcid protocol.ConnectionID) *logging.ConnectionTracer
- func NewTracer(w io.WriteCloser) *logging.Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConnectionTracer ¶ added in v0.45.0
func DefaultConnectionTracer(_ context.Context, p logging.Perspective, connID logging.ConnectionID) *logging.ConnectionTracer
DefaultConnectionTracer creates a qlog file in the qlog directory specified by the QLOGDIR environment variable. File names are <odcid>_<perspective>.sqlog. Returns nil if QLOGDIR is not set.
func DefaultTracer ¶ added in v0.41.0
func DefaultTracer(ctx context.Context, p logging.Perspective, connID logging.ConnectionID) *logging.ConnectionTracer
DefaultTracer creates a qlog file in the qlog directory specified by the QLOGDIR environment variable. Deprecated: use DefaultConnectionTracer instead.
func NewConnectionTracer ¶
func NewConnectionTracer(w io.WriteCloser, p logging.Perspective, odcid protocol.ConnectionID) *logging.ConnectionTracer
NewConnectionTracer creates a new tracer to record a qlog for a connection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.