Skip to content

Manual quickstart

Prefer to have your coding agent do this? Follow the Quickstart.

  1. 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.

  2. Set the environment variables

    .env
    OTEL_EXPORTER_OTLP_ENDPOINT=https://api.moyai.ai/otlp
    OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
    OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer%20<key>
    OTEL_METRICS_EXPORTER=none
    OTEL_LOGS_EXPORTER=none

    Moyai takes traces only, over HTTP. Keep this file out of git.

  3. 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":[]}'

    200 means it does. 401 means the key is wrong or expired. Then run your agent so it makes at least one LLM call.

  4. View it in Moyai

    Open Observatory to see the trace.