Documentation ¶
Overview ¶
Package logrus provides a log/span correlation hook for the sirupsen/logrus package (https://github.com/sirupsen/logrus).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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(e *logrus.Entry) error
Fire implements logrus.Hook interface, attaches trace and span details found in entry context
func (*DDContextLogHook) Levels ¶
func (d *DDContextLogHook) Levels() []logrus.Level
Levels implements logrus.Hook interface, this hook applies to all defined levels
Click to show internal directories.
Click to hide internal directories.