Configure a destination
- Open Telemetry exports → Add destination.
- Choose Datadog, Grafana Cloud, Amazon S3, or a custom OTLP/HTTP receiver.
- Enter the destination name, connection details, and credentials requested by the form.
- Select Logs, Metrics, or both, and choose the projects to include. An empty project filter includes all current and future projects.
- Save, use Test on the destination, and inspect its delivery status.
- Make a model request and verify the selected signals at the receiver.
Choose what to export
Every destination must enable logs, metrics, or both. New destinations default to logs.
Choose Metrics without Logs when you want dashboards and monitors but do not want a
request-level event stream. Choose both when operators need aggregate monitoring and individual
request diagnostics in the same backend.
Log record contract
Thegateway.usage log contains the event and request IDs, provider and effective model, route,
status, streaming flag, gateway and upstream timing, token usage, routing attempts, policy outcomes,
content-capture status, and cost attribution when evidence exists. Tenant attribution uses stable
organization, project, team, user, and API-key IDs where available.
gateway.lifecycle.phase distinguishes completion observations (request_completed) from
intermediate fallback accounting (provider_attempt). Correlate them by request ID; an intermediate
attempt does not mean the client request has finished.
Timing logs retain total and non-provider durations. gateway.base_overhead.duration_ms is the
observed residual after provider execution and explicitly enabled feature execution. When an
intervention runs, gateway.features.duration_ms and gateway.features.executions_json report
bounded durations, static names, phases and outcomes. These are accounting-boundary diagnostics;
they do not include all remaining settlement or final response-delivery work.
Prompts, responses, provider credentials, gateway API-key values, user email addresses, request
headers, and arbitrary exception text are never included. Optional Activity content capture is a
separate encrypted pipeline and is never copied into a telemetry destination.
Metric contract
Metrics are aggregated by matching attributes within each export batch and use delta temporality. Durations use seconds.
Base-overhead and feature histograms use completion observations so one request’s intervention
time is not counted again for each fallback attempt. The existing duration metrics retain their
meaning. A deliberately enabled feature can trade additional latency for another benefit; its
execution remains visible alongside the total duration.
Metric attributes include provider, model, route, status code, outcome, streaming, optional service
tier, organization, project, and team. Token points add
gen_ai.token.type; cost points add
attribution status and source. Metrics deliberately omit event, request, user, and API-key IDs.
Receiver paths and authentication
Aixy stores a signal-neutral OTLP base endpoint and sends binary protobuf to the standard signal paths:- logs:
/v1/logs - metrics:
/v1/metrics
/v1/logs or /v1/metrics URL; Aixy normalizes it to the
base. Redirects, credentials in URLs, private addresses, and special-purpose addresses are rejected.
DNS is checked again when the exporter connects.
- Datadog uses the OTLP intake host for the selected Datadog site and an encrypted
dd-api-key. See Datadog’s OTLP intake documentation. - Grafana Cloud uses the stack’s OTLP base endpoint and encrypted basic-auth credentials.
- Custom OTLP/HTTP sends to a public collector or receiver with optional encrypted headers.
- Amazon S3 stores gzip-compressed OTLP JSON below
signal=<logs|metrics>/year=YYYY/month=MM/day=DD/hour=HH/.