Skip to main content

Overview

OpenSRE queries Honeycomb for distributed traces during alert investigations — identifying slow spans, high-error services, and query patterns correlated with incidents.

Prerequisites

  • Honeycomb account (classic or environments-based)
  • API key with query access

Setup

Option 1: Interactive CLI

You will be prompted for the API key, dataset (defaults to __all__), and API URL.

Option 2: Environment variables

Add to your .env:

Option 3: Persistent store

Store credentials use base_url (not HONEYCOMB_API_URL).

Option 4: Multi-instance

For multiple Honeycomb environments or keys, use multi-instance with HONEYCOMB_INSTANCES:
When HONEYCOMB_INSTANCES is set, the single-instance HONEYCOMB_* variables are ignored.

Credentials

  1. In Honeycomb, go to AccountAPI Keys
  2. Click Create API Key
  3. Set the environment and enable Query Data permission
  4. Copy the key
Use __all__ as the dataset to query across all datasets in an environment. For EU accounts, set HONEYCOMB_API_URL=https://api.eu1.honeycomb.io.

Investigation tools

Arguments the planner commonly supplies:

Verify

Expected output:

Troubleshooting

Security

  • Use a dedicated read-only API key scoped to query access.
  • Store the API key in .env or your secret manager — not in source control.