CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-samber-slog

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

1.22x
Quality

96%

Does it follow best practices?

Impact

98%

1.22x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

100%

Loki Logging for a Multi-Tenant API Gateway

Loki high-cardinality metadata and graceful shutdown

Criteria
Without context
With context

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%

100%

25%

High-Throughput Logging with Sampling Observability

Sampling hooks and error exemption

Criteria
Without context
With context

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%

96%

31%

Error Reporting Pipeline with Sentry and User Context

Sentry structured error context and attributes

Criteria
Without context
With context

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%

Repository
samber/cc-skills-golang
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.