1

Install Elixir

2

Set up your project

You’ll need an Elixir API key to use the SDK and begin logging data.

  1. Create an Elixir account.
  2. Create a new project.
  3. Navigate to project settings and issue a new API key.

3

Set up your environment

.env
...
ELIXIR_API_KEY=<your-api-key>
4

Trace your agent conversation

  1. Call Elixir.init() to instrument calls to your LLM services.

(This uses an OpenTelemetry-compatible tracing standard. Asynchronous instrumentation ensures this will not add latency to your service.)

# import Elixir
from elixir import Elixir

# initialize globally
Elixir.init()
  1. Call Elixir.track_conversation(call_id: str) to track the current conversation and group LLM traces within. You’ll need to provide a call id.

Examples:

5

Send audio to Elixir

After the call ends, use Elixir.upload_audio(conversation_id: str, audio_url: str) to send call recording to Elixir. This can be used in one of two ways:

  1. Send a publicly accessible call recording URL.
  2. Upload the file directly (if recording link is not public).

Examples:


Additional Resources