Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Heroku Engineering 7 min read How-to mediumAdept

OpenTelemetry Basics on Heroku Fir

Heroku's Fir platform has OpenTelemetry built in and acts as the telemetry collector, so apps can forward platform logs, metrics and traces to any OTLP-compatible backend without running their own collector. After a brief primer on OpenTelemetry signals and the split between SDKs and collectors, a Go sample app is deployed to a Fir space and wired to Grafana Cloud. The setup takes Grafana's OTLP endpoint and auth headers, converts the headers to JSON with sed, and registers them with `heroku telemetry:add`. Metrics, router traces and logs then appear in Grafana within minutes.

Related posts

  • How We Export Metrics to Third-Party Services

    Neon mediumAdept

    Neon streams Postgres and host metrics to Datadog, New Relic and any OTLP-compatible platform by running a per-project OpenTelemetry Collector colocated with compute pods in each region. Collectors are provisioned through the OTel Kubernetes Operator via a custom resource. Each one scrapes sql_exporter and Vector endpoints using Kubernetes pod service discovery filtered by project label, then applies memory limiting and batching before exporting. Per-project placement was chosen over per-user or per-org collectors to avoid cross-region scraping latency and to keep failure domains isolated, and the setup reuses the same scraping model as the internal vmagent/VictoriaMetrics monitoring pipeline.

  • Why (and how) GitHub is adopting OpenTelemetry

    GitHub Engineering mediumAdept

    GitHub is standardizing on OpenTelemetry to replace a patchwork of statsd dialects, syslog-format logs and OpenTracing traces that made cross-signal correlation hard and forced repeated instrumentation work. The initial focus is tracing as the root signal, from which metrics, logs and exception reports can be derived and correlated via trace IDs injected into log lines. Opinionated internal helper libraries and community auto-instrumentation for Rails, PG, ActiveJob and HTTP clients give quick wins. Ruby config examples show a no-op span exporter for tests and a few `c.use` lines that surface slow database calls.

  • Make the PDS Your Own: Customization and Metrics

    AT Protocol mediumAdept

    The reference PDS release adds documented branding variables for the account management and OAuth screens: service name, logo, primary and semantic colors, footer links, and new light/dark background images. Contrast text color is derived automatically. Opt-in OpenTelemetry support auto-instruments HTTP, SQLite, S3 blob storage and Node runtime metrics, normalizes XRPC spans by NSID, and emits counters for account creation, sign-ins and OAuth grants. A bundled Prometheus v3/Grafana stack ingests OTLP directly without a Collector and runs in under 1GB. The default blob limit rises to 300MB and is advertised via describeServer, though existing installs must set PDS_BLOB_UPLOAD_LIMIT themselves, and a bug that hid stale OAuth sessions from the connected apps list is fixed.

  • Migrate Datadog telemetry with the OpenTelemetry Collector

    ClickHouse mediumAdept

    The OpenTelemetry Collector's Datadog receiver lets existing Datadog agents and SDKs send logs, traces and metrics to a Collector. The Collector translates them into the OpenTelemetry data model, and they can then be exported to any backend or dual-written alongside Datadog for side-by-side evaluation. ClickHouse contributed fixes upstream: proper log timestamps and severity mapping, promotion of resource attributes, reconstruction of 128-bit trace IDs for log-trace correlation, in-Collector JSON log decoding, and Zstandard support for Datadog Agent 7.59+. A worked example points a Datadog agent's datadog.yaml at ClickStack's Collector on port 8126. The receiver is still alpha: it is recommended for evaluating logs and traces, while metrics support covers only the v1/v2 intake endpoints and needs more testing.

  • Building AI-Powered Observability with Heroku Managed Inference and Agents

    Heroku Engineering mediumAdept

    Observability platforms like Splunk, Honeycomb and Sentry can be exposed to AI coding assistants as MCP tools, so engineers query production telemetry in natural language from Cursor or Claude instead of switching to dashboards and writing SPL. The Go servers define typed MCP tools and handlers that translate tool calls into platform API calls. They are deployed as STDIO processes behind Heroku Managed Inference and Agents, whose MCP gateway handles SSE transport and auth, and clients connect via mcp-remote with an inference token. Claimed benefits include faster incident triage, security pattern spotting such as auth-failure spikes, and quicker onboarding, though the evidence is anecdotal and promotional.

The quest for software engineering knowledge.

Look:
Layout: