Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶ added in v1.0.3
type Hook struct {
// contains filtered or unexported fields
}
Hook is a logrus hook that adds logs to the active span as events.
type Option ¶
type Option func(h *Hook)
Option applies a configuration to the given config.
func WithErrorStatusLevel ¶
WithErrorStatusLevel sets the minimal logrus logging level on which the span status is set to codes.Error.
The default is <= logrus.ErrorLevel.
func WithLevels ¶
WithLevels sets the logrus logging levels on which the hook is fired.
The default is all levels between logrus.PanicLevel and logrus.WarnLevel inclusive.
Click to show internal directories.
Click to hide internal directories.