tracelogger

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHook

func NewHook() logger.Hook

NewHook will create a new Hook compatible with go-logger, to automatically extract Span/Trace information from the Log-entry's context.Context, and add them as fields to the log-message.

Types

type DDContextLogHook

type DDContextLogHook struct{}

DDContextLogHook ensures that any span in the log context is correlated to log output.

func (*DDContextLogHook) Fire

func (d *DDContextLogHook) Fire(he *logger.HookEntry) (bool, error)

Fire implements logger.Hook interface, attaches trace and span details found in entry context

Jump to

Keyboard shortcuts

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