Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTraceHandler ¶
func NewTraceHandler(w io.Writer, opts *slog.HandlerOptions, traceConfig *traceConfig) *traceHandler
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithHandlerOptions ¶
func WithHandlerOptions(opt *slog.HandlerOptions) Option
WithHandlerOptions slog handler-options
func WithRecordStackTraceInSpan ¶
WithRecordStackTraceInSpan record stack track option
func WithTraceErrorSpanLevel ¶
WithTraceErrorSpanLevel trace error span level option
Click to show internal directories.
Click to hide internal directories.