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.
96
96%
Does it follow best practices?
Impact
100%
1.00xAverage score across 3 eval scenarios
Passed
No known issues
Loki high-cardinality attributes via structured metadata
HandleRecordsWithMetadata enabled
100%
100%
Loki graceful shutdown
100%
100%
Option constructor pattern
100%
100%
Versioned import path
100%
100%
Level field configured
100%
100%
High-cardinality fields as slog attributes
100%
100%
Loki client initialization
100%
100%
HTTP middleware noise filtering and attribute namespacing
Path filter applied
100%
100%
Status filter applied
100%
100%
WithGroup namespacing
100%
100%
NewWithConfig used
100%
100%
ClientErrorLevel set
100%
100%
ServerErrorLevel set
100%
100%
slog-chi import
100%
100%
Middleware registered
100%
100%
Multi-layer sampling pipeline with observability hooks
ThresholdSamplingOption used
100%
100%
Threshold Rate for post-threshold sampling
100%
100%
AbsoluteSamplingOption used
100%
100%
Both strategies chained via Pipe
100%
100%
ThresholdSamplingOption Matcher
100%
100%
AbsoluteSamplingOption Matcher
100%
100%
OnDropped hook wired
100%
100%
NewMiddleware called
100%
100%
8c7e016
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.