Manual quickstart
Prefer to have your coding agent do this? Follow the Quickstart.
-
Get an API key
Sign up with your email, Google or GitHub account. Once you are in Observatory, create an API key and copy it.
-
Set the environment variables
.env OTEL_EXPORTER_OTLP_ENDPOINT=https://api.moyai.ai/otlpOTEL_EXPORTER_OTLP_PROTOCOL=http/protobufOTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer%20<key>OTEL_METRICS_EXPORTER=noneOTEL_LOGS_EXPORTER=noneMoyai takes traces only, over HTTP. Keep this file out of git.
-
Send a trace
Check that Moyai accepts your key:
Terminal window curl -s -o /dev/null -w '%{http_code}\n' -X POST https://api.moyai.ai/otlp/v1/traces \-H 'Authorization: Bearer <key>' \-H 'Content-Type: application/json' \-d '{"resourceSpans":[]}'200means it does.401means the key is wrong or expired. Then run your agent so it makes at least one LLM call. -
View it in Moyai
Open Observatory to see the trace.