Skip to content

Honeycomb

Send CredenceStack's traces to Honeycomb over OTLP.

Facts on this page

Honeycomb's OTLP endpoint and its API-key header are from memory. This build ran offline, so the values marked TODO-verify were not confirmed: check them against Honeycomb's documentation before relying on them.

Prerequisites

  • pip install "credencestack[otel]"
  • A Honeycomb team and an ingest API key.

What you need from Honeycomb

  • An API key with permission to send events.
  • The OTLP endpoint for your region and the API-key header name: TODO-verify (Honeycomb's docs give both; the US and EU regions differ).

Configure

export OTEL_EXPORTER_OTLP_ENDPOINT="<Honeycomb's OTLP endpoint for your region>"   # TODO-verify
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_HEADERS="<API-key header>=${HONEYCOMB_API_KEY}"          # TODO-verify
export OTEL_SERVICE_NAME=credencestack   # Honeycomb names the dataset after the service

Run

credencestack otel check
credencestack run -p payments --agent my_agent:policy --otel

Verify

  1. otel check prints OK, and the run ends with OTel: exported N span(s).
  2. In Honeycomb, open the dataset for service credencestack (TODO-verify how your environment names datasets).
  3. Query credencestack.result = fail, then open a trace: the invoke_agent and execute_tool spans and the finding events.

Useful views and alerts

  • A trigger on COUNT where credencestack.findings.max_severity = critical.
  • A board of credencestack.result by credencestack.scenario.pack.

Filter generated scenarios and difficulty

Scenario spans of generated scenarios carry credencestack.forge.* attributes (reference). Query the credencestack dataset with:

WHERE credencestack.forge.generated = true AND credencestack.forge.level >= 4 AND credencestack.result = fail
GROUP BY credencestack.forge.level

Compare the failure rate by level with the fixed scenarios (credencestack.forge.generated absent) to see the brittleness of an agent in your own traces.

Limitations and troubleshooting

  • A failed test is not an error; use credencestack.test_failed.
  • 401: wrong key or region.

Last verified

2026-11-28, offline: not tested against a Honeycomb team. Docs: https://docs.honeycomb.io/send-data/opentelemetry/ (TODO-verify the URL).