Dash0
Pricing
Docs
Login
Book a demoStart free trial
Dash0
Dash0 home

Company

  • About us
  • Careers
  • Trust Center
  • Brand
  • Security

Products

  • Observability
  • AI SDLC
  • Agent0
  • SignalStore
  • SignalControl

Resources

  • Blog
  • Guides
  • Knowledge
  • Comparisons
  • Documentation
  • Podcast
  • Newsletter
  • Ebook
  • Integrations
  • Changelog

Get Started

  • Pricing
  • Free trial
  • Sitemap
  • Glossary
  • OTelBin.io

Compare

  • Datadog
  • Grafana
  • Dynatrace
  • New Relic
  • Elastic
  • Honeycomb
  • Sentry
  • Splunk
  • Solarwinds
  • SigNoz
  • Chronosphere
  • Better Stack
  • Coralogix
  • Instana
System status
  • Terms and Conditions
  • Privacy Policy
  • Data Processing Agreement
  • Vulnerability Disclosure

Ship more. Break less.

© 2026 Dash0 Inc.

In this integration

  • Intro
  • Overview
  • Use Cases
  • Setup
  • Further Reading
  • Related integrations
Integrations/Heroku Cedar Platform

Heroku Cedar Platform

Monitor Heroku application-level telemetry for comprehensive visibility and troubleshooting.

Overview

Heroku's Cedar platform is a long-standing runtime for deploying applications. Unlike the modern Fir runtime, Cedar does not have native OpenTelemetry integration. Observability on Cedar requires a manual, application-centric approach.

This integration guide focuses on instrumenting your application with an OpenTelemetry agent or SDK, packaging it within a container, and deploying it to Cedar. This method allows you to generate and export rich telemetry directly from your application to Dash0.

Use Cases

  • Track request count and latency for each service.
  • Monitor application performance and resource utilization with an OTel agent.
  • Capture and analyze application-level errors and exceptions.
  • Correlate application traces with logs by ensuring both are enriched with the same context.

Setup

Observability on Heroku's Cedar platform requires a manual, application-centric approach where you package an OpenTelemetry agent with your application in a container. This guide walks through the required steps to instrument, contextualize, and export telemetry from a Cedar application to Dash0.

The core tasks are:

  1. Enriching telemetry with Heroku's dyno metadata.
  2. Packaging your application and the OTel agent in a container.
  3. Configuring the OTel agent and exporter via environment variables.
  4. Deploying the container to Heroku.

1. Enable Dyno Metadata A critical first step is to expose Heroku's runtime information to your dyno. This metadata is essential for correlating telemetry with your application's environment.

Execute the following Heroku CLI commands for your application. This is a one-time setup.

# Enable base metadata (app name, release version, dyno ID, etc.)
heroku labs:enable runtime-dyno-metadata -a <YOUR_APP_NAME>
# Enable build metadata (the git commit hash)
heroku labs:enable runtime-dyno-build-metadata -a <YOUR_APP_NAME>
Info
The metadata will become available as HEROKU_* environment variables after your next deployment.

2. Create the OTel SDK Configuration File

Info

The OTel SDK configuration file format is an experimental feature and may not be supported by all language-specific SDKs. It is well-supported by the OpenTelemetry Java agent. Before implementing, check the official OpenTelemetry Configuration project ↗ for the latest compatibility information. If your SDK does not support this file, you will need to configure the resource attributes manually in your application's code, reading the HEROKU_* environment variables directly.

Next, create a configuration file that maps the Heroku environment variables to standard OpenTelemetry resource attributes. This ensures your telemetry is correctly tagged with its source.

# sdk-config.yaml
resource:
  attributes:
    - name: cloud.provider
      value: heroku
    - name: service.name
      value: ${HEROKU_APP_NAME:-unknown-service}
    - name: service.version
      value: ${HEROKU_RELEASE_VERSION:-unknown-version}
    - name: service.instance.id
      value: ${HEROKU_DYNO_ID:-unknown-instance}
    - name: heroku.app.id
      value: ${HEROKU_APP_ID:-unknown-app-id}
    - name: heroku.release.commit
      value: ${HEROKU_BUILD_COMMIT:-unknown-commit}
    - name: heroku.release.creation_timestamp
      value: ${HEROKU_RELEASE_CREATED_AT:-unknown-timestamp}
Info

If you want to continue to use the OTEL_* environment variables alongside this configuration file, make sure to base your file on https://github.com/open-telemetry/opentelemetry-configuration/blob/v0.4.0/examples/sdk-migration-config.yaml ↗

3. Package the Application and Agent

How you configure and build your container image will depend on your chosen technology stack. The key is to ensure your Dockerfile or build process includes the OpenTelemetry auto-instrumentation agent for your language and also copies the sdk-config.yaml file created in the previous step into the image.

Please refer to the detailed, language-specific guides in the Dash0 Integration Hub for guidance regarding the auto-instrumentation configuration:

  • Ruby SDK & Auto-Instrumentation
  • Python SDK & Auto-Instrumentation
  • Node.js SDK & Auto-Instrumentation
  • Java SDK & Auto-Instrumentation
  • .NET SDK & Auto-Instrumentation
Info

For inspiration, see our guide on Monitoring Heroku Applications with OpenTelemetry. It provides a detailed walkthrough of how to use buildpacks to bundle the Java auto-instrumentation agent into your application image.

4. Configure the Exporter

Now, configure Heroku with your Dash0 endpoint and API token. The OTel agent (if enabled) will automatically use these standard environment variables. You also need to tell the agent where to find the SDK configuration file.

Replace the placeholder values <YOUR_APP_NAME>, <YOUR_PATH_TO_FILE> with your specific application name and configuration file path.

# Set the Dash0 endpoint and API token
heroku config:set \
  OTEL_EXPORTER_OTLP_ENDPOINT="{{endpoint_otlp_http}}" \
  OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer {{token}}" \
  -a <YOUR_APP_NAME>

# Point the enabled agent to the SDK config file inside the container (if applicable)
heroku config:set \
  OTEL_EXPERIMENTAL_CONFIG_FILE="<YOUR_PATH_TO_FILE>/sdk-config.yaml" \
  -a <YOUR_APP_NAME>

5. Build and Deploy the Container

Finally, build the Docker image and deploy it using Heroku's container registry.

After a few moments, your application will be running on Cedar, and the OTel agent will begin sending telemetry to your Dash0 account.

Further Reading

  • Heroku Container Registry & Runtime ↗

Related Integrations

  • Heroku