Skip to main content
All recipes

Honeycomb

CodeOTLP

Send request metrics to Honeycomb using your OpenTelemetry provider and the SDK’s beforeSend hook.

Configure the OTLP exporter for Honeycomb

Configure an application metrics provider and a write-enabled Honeycomb key. This example uses the US endpoint. Check Honeycomb’s metrics setup for your region and account; keep the key in server-side secrets.

Bash
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_ENDPOINT=https://api.honeycomb.io
export OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=$HONEYCOMB_API_KEY"

Mirror via beforeSend

Use the OpenTelemetry recipe with your initialized metrics provider. The current Honeycomb metrics experience routes data to its managed Metrics dataset; a custom dataset header is not required.

Continue your setup

Check runtime availability and credentials before deploying an integration.