ollygarden-otel-go-setup

Installation
SKILL.md

Go SDK Setup Conventions

Setup Checklist — verify every item before you finish

Setup is not done when the SDK boots. Each unchecked item below produces a specific telemetry-quality finding in production; work through all of them.

  • Thread the request context into the data layer. Every database, HTTP-client, and queue call on a request path must receive the request's ctx — never context.Background() and never a bare global handle. With GORM this means db.WithContext(ctx) at every query site, with the context passed handler → service → model:

    // handler: take ctx from the framework request
    articles, err := svc.ListArticles(c.Request.Context(), filter)
    
Installs
11
GitHub Stars
3
First Seen
May 18, 2026
ollygarden-otel-go-setup — ollygarden/skills