Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
Apply(*OtelCore)
}
Option applies a configuration to the given config.
func WithErrorStatusLevel ¶
WithErrorStatusLevel sets the maximum logrus logging level on which the span status is set to codes.Error.
The default is <= logrus.ErrorLevel.
func WithLevel ¶
func WithLevel(enab zapcore.LevelEnabler) Option
type OtelCore ¶
type OtelCore struct { zapcore.LevelEnabler // contains filtered or unexported fields }
func NewOtelCore ¶
func (*OtelCore) Check ¶
func (c *OtelCore) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
Click to show internal directories.
Click to hide internal directories.