Versions in this module Expand all Collapse all v0 v0.1.11 Dec 11, 2024 Changes in this version + func NewTraceHandler(w io.Writer, opts *slog.HandlerOptions, traceConfig *traceConfig) *traceHandler + type Option interface + func WithHandlerOptions(opt *slog.HandlerOptions) Option + func WithLevel(lvl *slog.LevelVar) Option + func WithOutput(iow io.Writer) Option + func WithRecordStackTraceInSpan(recordStackTraceInSpan bool) Option + func WithTraceErrorSpanLevel(level slog.Level) Option + type Writer struct + func NewWriter(opts ...Option) *Writer + func (w *Writer) Logger() *slog.Logger + func (w *Writer) Printf(format string, v ...interface{}) + func (w *Writer) SetLvel(level slog.Level) + func (w *Writer) SetOutput(writer io.Writer)