Documentation
¶
Index ¶
- func NewHandler(opts ...Option) (slog.Handler, error)
- type Option
- func WithAttachStacktrace(v bool) Option
- func WithDSN(dsn string) Option
- func WithDebug(v bool) Option
- func WithEnvironment(env string) Option
- func WithLogAddSource(v bool) Option
- func WithLogAttrFromContext(fns ...func(ctx context.Context) []slog.Attr) Option
- func WithLogExtraAttrs(attrs map[string]string) Option
- func WithLogLevel(l slog.Level) Option
- func WithLogReplaceAttr(fns ...func(groups []string, a slog.Attr) slog.Attr) Option
- func WithRelease(rev string) Option
- func WithSentryHub(hub *sentry.Hub) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(opt *sentry.ClientOptions, _ *slogsentry.Option, _ *logConfig)
func WithAttachStacktrace ¶
func WithEnvironment ¶
func WithLogAddSource ¶
func WithLogAttrFromContext ¶
func WithLogExtraAttrs ¶
func WithLogLevel ¶
func WithLogReplaceAttr ¶ added in v0.2.1
func WithRelease ¶
func WithSentryHub ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.