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.
91
89%
Does it follow best practices?
Impact
95%
1.00xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Loki handler configuration for high-cardinality per-request attributes
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/list
/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/v0.0.0-20160811212531-371fbbdaa898.mod
/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/v0.0.0-20200407214033-5883e5a4b512.mod
/home/agent/go/pkg/mod/cache/download/cloud.google.com/go/@v/list
/home/agent/go/pkg/mod/cache/download/cloud.google.com/go/@v/v0.100.2.mod
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/list
/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/v0.0.0-20160811212531-371fbbdaa898.mod
/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/v0.0.0-20200407214033-5883e5a4b512.mod
/home/agent/go/pkg/mod/cache/download/cloud.google.com/go/@v/list
/home/agent/go/pkg/mod/cache/download/cloud.google.com/go/@v/v0.100.2.mod
HandleRecordsWithMetadata enabled
100%
100%
Option struct constructor
100%
100%
NewLokiHandler method
100%
100%
lokiClient.Stop() called
100%
100%
Deferred shutdown
100%
0%
Label explosion explanation
100%
100%
High-cardinality as slog attributes
100%
100%
Sampling observability via accepted/dropped hook metrics in slog pipeline
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/list
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.info
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.lock
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.mod
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.zip
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/list
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.info
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.lock
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.mod
/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.zip
OnAccepted hook set
100%
100%
OnDropped hook set
100%
100%
OnAccepted increments counter
100%
100%
OnDropped increments counter
100%
100%
Separate accepted/dropped metrics
100%
100%
Sampling first in pipeline
100%
100%
No formatter before sampling
100%
100%
No router before sampling
100%
100%
Uses slogmulti.Pipe()
100%
100%
No custom Handler for metrics
100%
100%
Two-tier sampling pipeline with per-message and global cap
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/list
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.info
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.lock
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.mod
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.zip
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/list
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.info
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.lock
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.mod
/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.zip
ThresholdSamplingOption used
100%
100%
AbsoluteSamplingOption used
100%
100%
Pipe() chaining pattern
86%
100%
Threshold before absolute in chain
0%
100%
Per-message matcher for threshold
100%
100%
Global matcher for cap
100%
100%
No UniformSamplingOption
100%
100%
No custom sampling logic
100%
100%
Sampling is pipeline-first
40%
40%
19a0626
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.