Export to an OTLP collector
Forward events from one environment to Datadog, Honeycomb, Grafana, Tempo or your own OpenTelemetry collector as they arrive.
An export destination forwards every new event in one environment to an external OTLP/HTTP endpoint, so the same telemetry you see in axonpush also lands in the tool your team already uses. Forwarding happens per event, after the event is stored, and a failing collector never slows or blocks ingest.
Use webhooks instead when you want plain JSON posted to your own service rather than OTLP.
Add a destination in the dashboard
- Open Settings, then Exports. The page is titled Export destinations.
- Click Add destination.
- Fill in Name, pick the Environment to forward, and choose the Signals (logs, traces or both).
- Enter the OTLP endpoint URL, the collector’s base URL. axonpush appends
/v1/tracesand/v1/logsitself. - Optionally add Headers, one
Name: valueper line (for example your vendor’s API key header), a service.name, and an Event type filter as a comma-separated list. - Click Add, then Test on the new row and open Deliveries to see the result.
Only organisation admins and owners can see and manage export destinations.
Add a destination with the API
curl -X POST https://api.axonpush.xyz/export-destinations \
-H "X-API-Key: $AXONPUSH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Honeycomb (prod)",
"envSlug": "prod",
"endpointUrl": "https://api.honeycomb.io",
"signals": ["traces", "logs"],
"headers": { "x-honeycomb-team": "YOUR_HONEYCOMB_KEY" },
"serviceName": "support-agent"
}'| Field | Required | Notes |
|---|---|---|
name | yes | Display name. |
envSlug | yes | The environment to forward, by slug, for example prod. A slug that does not name an environment in your organisation is 422. |
endpointUrl | yes | Collector base URL. /v1/traces or /v1/logs is appended after any trailing slash is removed. |
signals | yes | At least one of traces, logs. |
headers | no | Header name to value map, sent on every request. Values are never returned by the API; reads only show headerKeys. |
eventTypeFilter | no | Exact event types to forward. Omitted or empty forwards every type. |
serviceName | no | Overrides the service.name resource attribute on everything sent to this destination. |
The response (201) is the destination, with an exp_ ID. There is no SDK
helper for export destinations yet; use the HTTP API or the
MCP tools.
What gets sent
Each event becomes one OTLP request, encoded as protobuf
(Content-Type: application/x-protobuf, User-Agent: axonpush-export).
Events are not batched.
- Event types containing
log(app.log,agent.log) are sent as a log record to/v1/logs. Every other type is sent as a span to/v1/traces. If the destination’ssignalsdo not include that signal, the event is skipped. - A span keeps the event’s trace ID, span ID and parent span ID when they are valid hex IDs, otherwise a random ID is used. The span name is the event’s operation name, or its event type. Start and end times come from the event’s time and duration. Status is set to error or ok from the event status.
- A log record has severity
ERRORfor error events andINFOotherwise, and its body is the operation name or event type. - The event’s stored attributes are copied onto the span or log record, after your organisation’s redaction policy has run. The event payload is not sent.
service.nameis the destination’sserviceNameif set, else the event’s own service name, elseaxonpush.
Only events that arrive after the destination is created are forwarded. There is no backfill of past data.
Test a destination
curl -X POST https://api.axonpush.xyz/export-destinations/exp_.../test \
-H "X-API-Key: $AXONPUSH_API_KEY"This queues one synthetic span named axonpush export test (event type
export.test, attribute axonpush.test: true) and returns 202 with the
deliveryId and the signal used. It sends a trace unless the destination
only accepts logs. It returns 409 for a paused destination, and 503 on a
deployment where export delivery is not enabled.
Check deliveries
GET /export-destinations/{destinationId}/deliveries returns the 100 most
recent deliveries, newest first. The dashboard shows the same list under
Deliveries.
| Field | Meaning |
|---|---|
status | pending, success, failed or skipped (destination paused or removed before sending). A delivery that is still being retried shows failed. |
signal | traces or logs. |
eventId | The forwarded event, or a test_ ID for test deliveries. |
attempts | Attempts made so far. |
statusCode | The collector’s last HTTP status. |
error | The last error, such as status 401. |
A collector response below 300 is a success. Any other status, a timeout
(10 seconds) or a network error is retried with the same delivery ID, up to
five attempts. Encoding errors and invalid URLs fail without retry.
Pause, edit and remove
PATCH /export-destinations/{destinationId}changesname,endpointUrl,signals,eventTypeFilter,serviceNameoractive. Sendingheadersreplaces the whole header map; leaving it out keeps the stored headers. The environment cannot be changed. In the dashboard, the switch on each row pauses and resumes forwarding.DELETE /export-destinations/{destinationId}deactivates the destination. It stops forwarding but the record, its headers and its delivery log are kept, and it still appears in the list as inactive.
GET /export-destinations lists every destination in the organisation;
add ?envSlug=prod to filter by environment.
Network rules
Requests go out through the same guarded client as webhooks: http or
https on ports 80, 443 and 4318, no private or loopback addresses, and no
redirects. On a self-hosted deployment the operator can
widen this with AXONPUSH_OUTBOUND_PORTS and
AXONPUSH_OUTBOUND_PRIVATE_ORIGINS, for example to reach a collector inside
the same network.
Access
Reads need observe:read and changes (create, update, delete, test) need
observe:manage, both on an API key that is not bound to an app or
environment. In the dashboard, an organisation admin or owner is required.
Exports forward live events. They are not an archive. For long-term retention and evidence see Audit.
Related
- Webhooks, signed JSON per event to your own endpoint
- Environments, the slugs a destination is scoped to
- Export destinations API
- MCP tools