Elastic APM: three bugs in one integration
Three silent defaults across Gin, GORM, pgx, and Elastic APM: why SQL spans disappeared and why the same context bug also broke request cancellation.
Engineering · Products · Notes
Three silent defaults across Gin, GORM, pgx, and Elastic APM: why SQL spans disappeared and why the same context bug also broke request cancellation.
How to open a transaction at the use-case level, pass it to repositories without coupling business logic to an ORM, and handle nested calls correctly.
Why a shared ErrNotFound conflates distinct failures, where sentinel errors belong, and how to translate GORM or database/sql errors at the repository boundary.
How to enqueue a River job in the same transaction as a business record in PostgreSQL, then run it safely in a separate worker.
How Onplate projects connect source code, AI resources, profiles, launch modes, and actual tool usage.
How Onplate manages skills, MCP servers, and subagents while tracking security, context cost, and actual usage.
A practical guide to the project structure, local development, the production image, and publishing a new article.
In development
Local AI-context audit and management for Claude Code, Codex, Cursor, GLM, and OpenCode settings.
Go · Wails · TypeScript
View project