Documentation ¶
Index ¶
- Constants
- Variables
- func Code(skip int) (attrs []attribute.KeyValue, function string)
- func ParseLogLevel(_ context.Context, str string) (level slog.Level, err error)
- type Config
- type Const
- type EnvVar
- type Handler
- type NamedShutdowner
- type Option
- type OptionFunc
- type Sauté
- type Shutdowner
- type Variable
Constants ¶
Variables ¶
View Source
var ( OTEL_LOG_LEVEL = EnvVar[slog.Level]{ Parent: Const[slog.Level]{slog.LevelInfo}, Key: "OTEL_LOG_LEVEL", } OTEL_SDK_DISABLED = EnvVar[bool]{ Parent: Const[bool]{false}, Key: "OTEL_SDK_DISABLED", } )
View Source
var (
ErrBadLogLevel = errors.New("bad log level")
)
Functions ¶
Types ¶
type Config ¶
type NamedShutdowner ¶
type NamedShutdowner struct { Shutdowner // contains filtered or unexported fields }
type OptionFunc ¶
type Sauté ¶
func (*Sauté) SetErrorHandler ¶ added in v0.0.2
func (s *Sauté) SetErrorHandler(config *Config, 𝑓 func(otel.ErrorHandler))
type Shutdowner ¶
Click to show internal directories.
Click to hide internal directories.