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— nevercontext.Background()and never a bare global handle. With GORM this meansdb.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)