Versions in this module Expand all Collapse all v0 v0.1.1 Feb 9, 2026 Changes in this version type Options + DebugLog *slog.Logger + IngestionEndpoint string v0.1.0 Feb 9, 2026 Changes in this version + type DropPolicy int + const DropNewest + const DropOldest + type Handler struct + func NewHandler(ctx context.Context, sdk *ycsdk.SDK, opts Options) (*Handler, error) + func (h *Handler) Close(ctx context.Context) error + func (h *Handler) Enabled(_ context.Context, level slog.Level) bool + func (h *Handler) Handle(_ context.Context, record slog.Record) error + func (h *Handler) Stats() StatsSnapshot + func (h *Handler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *Handler) WithGroup(name string) slog.Handler + type Options struct + BatchMaxEntries int + DefaultPayload map[string]string + DropPolicy DropPolicy + FlushInterval time.Duration + FolderID string + GRPCTimeout time.Duration + InstanceID string + LogGroupID string + MinLevel slog.Level + QueueSize int + RetryInitialBackoff time.Duration + RetryMaxBackoff time.Duration + RetryMaxElapsed time.Duration + Service string + ShutdownFlushTimeout time.Duration + type Stats struct + DroppedEntries atomic.Int64 + FailedBatches atomic.Int64 + RetriedBatches atomic.Int64 + SentEntries atomic.Int64 + func (s *Stats) Snapshot() StatsSnapshot + type StatsSnapshot struct + DroppedEntries int64 + FailedBatches int64 + RetriedBatches int64 + SentEntries int64