Wide Events gem bundles Rails request context into one OpenTelemetry span for AI agents
Wide Events is a new Ruby gem designed to consolidate all relevant production context from a single Rails request or background job into one flat OpenTelemetry root span. The tool addresses a key blind spot for coding agents, which can read source code quickly but lack visibility into runtime details such as active feature flags, query counts, or which tenant experienced an issue. In a real production example, the gem helped pinpoint a 28.9-second outbound HTTP call by surfacing timing data on a single queryable row, compared to parsing 82 spans manually. Developers define their own application-specific attributes — such as account IDs or search outcomes — while the gem handles attaching them to the root span at request completion. Wide Events requires Ruby 3.2 and Rails 7.1 or later, and is compatible with any OTLP-compatible backend or can fall back to emitting a single JSON log line.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in