Skip to main content
  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

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.
# pip install respan-tracing
from openai import OpenAI
from respan_tracing.decorators import workflow, task
from respan_tracing.main import RespanTelemetry

k_tl = RespanTelemetry()
client = OpenAI()

@task(name="joke_creation")
def create_joke():
    completion = client.chat.completions.create(
        model="gpt-4o-mini",
        messages=[{"role": "user", "content": "Tell me a joke about AI"}],
    )
    return completion.choices[0].message.content

@workflow(name="joke_workflow")
def joke_workflow():
    return create_joke()

result = joke_workflow()
print(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