Structured logging extensions for Golang using samber/slog-**** packages — multi-handler pipelines (slog-multi), log sampling (slog-sampling), attribute formatting (slog-formatter), HTTP middleware (slog-fiber, slog-gin, slog-chi, slog-echo), and backend routing (slog-datadog, slog-sentry, slog-loki, slog-syslog, slog-logstash, slog-graylog...). Apply when using or adopting slog, or when the codebase already imports any github.com/samber/slog-* package.
95
96%
Does it follow best practices?
Impact
98%
1.22xAverage score across 3 eval scenarios
Passed
No known issues
Loki high-cardinality metadata and graceful shutdown
HandleRecordsWithMetadata enabled
100%
100%
Graceful shutdown via lokiClient.Stop()
100%
100%
Option constructor pattern
100%
100%
Versioned import path
100%
100%
NOTES.md explains metadata vs labels
100%
100%
Shutdown function returned/deferred
100%
100%
Sampling hooks and error exemption
OnAccepted hook present
100%
100%
OnDropped hook present
100%
100%
Errors/Warns bypass sampling
100%
100%
Production sampling strategy
0%
100%
Matcher explained in DESIGN.md
33%
100%
samber/slog-sampling library used
100%
100%
Sampling is outermost on sampled path
100%
100%
Sentry structured error context and attributes
Error key recognized by Sentry
100%
100%
User context via slog.Group("user")
0%
100%
Custom tags via slog.Group("tags")
0%
100%
environment and release in Option
50%
60%
Sentry flush on shutdown
100%
100%
Catch-all stdout handler
100%
100%
Option constructor pattern
100%
100%
Versioned sentry import
100%
100%
SENTRY_NOTES.md covers error keys
100%
100%
e9761db
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.