Help / OpenTelemetry export
OpenTelemetry export
Send every workflow run as a trace, your job metrics and, if you choose, your job logs to the observability tool you already use. No exporter to run and nothing to add to your workflows.
Set it up
- An account admin opens Settings → Telemetry export → Set up.
- Enter your tool's OTLP/HTTP endpoint, the base address without
/v1/traces. We add/v1/traces,/v1/metricsand/v1/logs. - Add the headers your tool needs, usually an API key, one
Name: valuea line. They are stored encrypted, only our export service can read them, and the page never shows the values again. - Choose traces, metrics and logs, and whether to mask secrets. Save, then press Send a test.
Jobs that finished in the hour before you turn it on, and every job after, are sent within about a minute. Usage figures (billed minutes, price, CPU, memory, disk and network) follow once the job's VM is gone, usually a few minutes later.
| Tool | Endpoint | Header |
|---|---|---|
| Honeycomb | https://api.honeycomb.io (EU: https://api.eu1.honeycomb.io) | x-honeycomb-team: <API key> |
| Grafana Cloud | The OTLP endpoint on your stack's OpenTelemetry page, ending /otlp | Authorization: Basic <base64 of instance id:token> |
| New Relic | https://otlp.nr-data.net (EU: https://otlp.eu01.nr-data.net) | api-key: <license key> |
| Datadog, Splunk, Elastic and others | An OpenTelemetry Collector or the vendor's agent with an OTLP/HTTP receiver on a public https address | Whatever your receiver checks |
We send OTLP over HTTP as protobuf, gzip-compressed, from Google Cloud addresses. The endpoint must be a public https address; we don't follow redirects.
Traces
Each workflow run attempt is one trace. Re-running a workflow starts a new trace.
- The run is the root span, named after the workflow, from the run's start to its end.
- Each job on our runners is a child span from when GitHub queued it to when it finished. It is marked as an error when the job failed.
- Waiting for a runner covers the time from queued to running, and holds Starting the VM when the job's VM was created for it.
- Each step is a span under its job, so slow checkouts, cache restores, installs and tests show up in the waterfall.
Spans carry the OpenTelemetry CI/CD attributes: cicd.pipeline.name (workflow), cicd.pipeline.task.name (job), cicd.pipeline.run.id, cicd.pipeline.task.run.result, links back to GitHub in cicd.pipeline.run.url.full and cicd.pipeline.task.run.url.full, and vcs.repository.name, vcs.ref.head.name (branch) and vcs.ref.head.revision (commit). Ours add ci.runner.label, ci.runner.class, ci.job.preempted and ci.job.queue_seconds, and the VM's cloud.availability_zone.
Jobs that ran on other runners, such as GitHub-hosted ones, are not in the trace: we only see our own.
Metrics
Metrics use delta temporality and carry vcs.repository.name, cicd.pipeline.name, cicd.pipeline.task.name and ci.runner.label, so you can slice by repository, workflow, job and runner size.
| Metric | Type | What it is |
|---|---|---|
ci.job.count | Sum | Finished jobs, with cicd.pipeline.task.run.result (success, failure, cancellation, error for preempted). Success rate is success over the total. |
ci.job.duration | Histogram, s | Time each job ran, by result. |
ci.job.queue_time | Histogram, s | Time from queued to running. |
ci.job.preemptions | Sum | Jobs whose Spot VM was preempted. |
ci.job.billed_minutes | Sum, min | Runner minutes billed. |
ci.job.cost | Sum, USD | Your price for those minutes, before free Starter minutes and credits. |
ci.job.cpu.utilization.p95, ci.job.memory.utilization.p95 | Gauge, 0 to 1 | 95th percentile CPU and memory use of the job's VM. |
ci.job.network.io, ci.job.disk.io | Sum, bytes | Bytes moved, with network.io.direction or disk.io.direction. |
Prometheus-based stores, such as Prometheus and Grafana Mimir, keep cumulative counters. If yours refuses delta metrics, send them through an OpenTelemetry Collector with the deltatocumulative processor.
Logs
Logs are off until you tick Logs. Then every line of each job's log on our runners is sent as a log record, a few minutes after the job ends, once we have read it from GitHub:
- Each record carries the line's own time, its line number in
log.record.line, and the job'svcs.repository.name,cicd.pipeline.name,cicd.pipeline.task.nameandci.runner.label. - It carries the trace and span ids of the step it was printed in, or of the job outside any step, so your tool can jump from a slow or failed step to its lines.
##[error]lines are sent as ERROR,##[warning]as WARN,##[debug]as DEBUG, and the rest as INFO.- Up to 20,000 lines a job, each cut at 16,000 characters, in requests of about 1 MB.
GitHub replaces your repository's registered secrets with *** before we ever see a log. Anything else your jobs print is sent as it is, unless you also tick Mask secrets.
Masking secrets
Workflow, job, step and branch names are written by your repository's contributors, and logs hold whatever your jobs print, so now and then one holds something it shouldn't. Tick Mask secrets and we replace text in names and log lines that looks like a secret with [REDACTED:<kind>] before it leaves:
- GitHub, GitLab, npm, PyPI, Docker Hub, Slack, Stripe, Google, OpenAI and Anthropic tokens and keys;
- AWS access key ids and secret keys, private key blocks and JSON web tokens;
- passwords in URLs, bearer tokens, and values after
password=,token:,api_key=and the like; - long random-looking strings. Commit SHAs and other hex digests are left alone.
The status card counts what was masked. Masking is best effort: it catches common formats, not every secret, so keep secrets in GitHub's encrypted secrets rather than in names or printed output.
What leaves and what doesn't
Only your account's own jobs go to your endpoint, and only to the endpoint an admin set. Job logs go only when you turn on Logs. We never send your secrets or environment, and never anything about other accounts. If the endpoint fails we retry with back-off for up to a day, then drop what is older; the status card shows the last error. Deleting the export removes its saved headers at once.
From the API and CLI
Read the export with GET /v1/telemetry-export or drcli telemetry. Changing it from an app or an API token is off until an admin turns on Telemetry export under Settings → Risky permissions for apps and tokens, because whoever can change it chooses where your job data goes. Sending full job logs also needs the separate Job log export permission. Turning either permission on does not add it to an existing connection or token; reconnect the app or make a new token and explicitly allow it. Then:
printf 'x-honeycomb-team: %s\n' "$HONEYCOMB_KEY" | \
drcli telemetry set --endpoint https://api.honeycomb.io --headers-stdin --scrub --logs
drcli telemetry test
See the API's risky permissions. Every change, from the dashboard or the API, is recorded in the account's settings history with who made it.
Screenshots and videos in Help are a demonstration rebuilt from our own benchmark jobs. The jobs, steps, run times and charges are real; queue waits and the CPU, memory, disk and network graphs in them are illustrative, not measurements.