Versions in this module Expand all Collapse all v0 v0.705.0 Sep 11, 2026 Changes in this version + const DefaultBatchBytes + const DefaultBatchSize + const DefaultFlushInterval + const DefaultHTTPTimeout + const DefaultQueueSize + const SkipAttrKey + func Available() bool + func Endpoint() string + func FormatDebugID(id string) string + func NewDebugID() (string, error) + func Token() string + func ValidDebugID(id string) bool + type AppInfo struct + Arch string + Go string + Mode string + OS string + Variant string + Version string + type Options struct + BatchBytes int + BatchSize int + DebugID string + Endpoint string + FlushInterval time.Duration + Gzip bool + HTTPClient *http.Client + HTTPTimeout time.Duration + MinLevel slog.Level + Mode string + QueueSize int + Token string + type Record struct + App AppInfo + Attrs map[string]any + DebugID string + Dropped int + Level string + Message string + SessionID string + Source string + Time time.Time + func NewRecord(t time.Time, level slog.Level, msg string, attrs []slog.Attr) Record + type Shipper struct + func NewShipper(opts Options) *Shipper + func (s *Shipper) DebugID() string + func (s *Shipper) Enabled(level slog.Level) bool + func (s *Shipper) Enqueue(r Record) + func (s *Shipper) Flush(ctx context.Context) error + func (s *Shipper) Handle(ctx context.Context, t time.Time, level slog.Level, msg string, ...) + func (s *Shipper) SetDebugID(id string) + func (s *Shipper) Start(ctx context.Context) + func (s *Shipper) Stats() Stats + func (s *Shipper) Stop(ctx context.Context) error + type Stats struct + Disabled bool + Dropped uint64 + Failed uint64 + Sent uint64