Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogrusHook ¶
type LogrusHook struct{}
LogrusHook is a logrus hook which adds logrus events to active spans. If the span is not recording or the span context is invalid, the hook is a no-op.
func (*LogrusHook) Fire ¶
func (h *LogrusHook) Fire(entry *logrus.Entry) error
Fire is called when a log event occurs.
func (*LogrusHook) Levels ¶
func (h *LogrusHook) Levels() []logrus.Level
Levels returns the logrus levels that this hook is interested in.
Click to show internal directories.
Click to hide internal directories.