Quickstart

Get your first trace in Respan in 5 minutes.
  1. Sign up — Create an account at platform.respan.ai
  2. Create an API key — Generate one on the API keys page
  3. Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page

Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.

1{
2 "mcpServers": {
3 "respan-docs": {
4 "url": "https://docs.respan.ai/mcp"
5 }
6 }
7}

1. Set up your account

Sign up at platform.respan.ai and create an API key on the API keys page.


2. Set up tracing

Pick the method that matches your stack.

Add @workflow and @task decorators to your code. LLM calls are auto-captured.

1# pip install respan-tracing
2from openai import OpenAI
3from respan_tracing.decorators import workflow, task
4from respan_tracing.main import RespanTelemetry
5
6k_tl = RespanTelemetry()
7client = OpenAI()
8
9@task(name="joke_creation")
10def create_joke():
11 completion = client.chat.completions.create(
12 model="gpt-4o-mini",
13 messages=[{"role": "user", "content": "Tell me a joke about AI"}],
14 )
15 return completion.choices[0].message.content
16
17@workflow(name="joke_workflow")
18def joke_workflow():
19 return create_joke()
20
21result = joke_workflow()
22print(result)

For advanced features (class-based workflows, override span I/O), see Tracing SDK.


3. See your first trace

Open the Traces page in the Respan dashboard. You should see your trace appear within a few seconds.

Agent tracing visualization

What’s next