Prerequisites
Before you start, make sure you have:- A TrueFoundry account with AI Gateway configured.
- A Lunary project with its Public Key copied from Settings → API Keys.
1
Open the OTEL configuration
In TrueFoundry, go to
Settings → Organisation → AI Gateway → OTEL Data Export Configuration.

2
Configure trace export
Enable OTEL Traces Exporter Configuration, select HTTP Configuration,
and enter:
Replace
<LUNARY_PUBLIC_KEY> with your Lunary Public Key.
3
Optionally configure metrics
To export aggregate metrics, enable OTEL Metrics Exporter Configuration and
use
https://api.lunary.ai/v1/metrics with the same encoding and authorization
header.4
Save and verify
Save the configuration and send a request through TrueFoundry AI Gateway. In
Lunary, open Explore → Traces and confirm that the gateway trace appears.
