Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
What is Anthropic Agents?
The Anthropic Agent SDK enables building agent workflows powered by Claude. Use the Respan exporter to capture telemetry from agent runs and send traces to Respan.Setup
Set environment variables
.env
RESPAN_BASE_URL is the single base URL for all Respan services. The exporter automatically appends /api/v1/traces/ingest to build the full endpoint.View your trace
Open the Traces page in the Respan dashboard. Your trace should appear within a few seconds.
Configuration
All configuration can be passed directly to the constructor (takes priority over environment variables).- Python
- JavaScript
| Parameter | Required | Description |
|---|---|---|
api_key | No | Your Respan API key. Overrides RESPAN_API_KEY. |
base_url | No | Base URL for Respan services. Overrides RESPAN_BASE_URL. Defaults to https://api.respan.ai. |
endpoint | No | Full endpoint URL. Overrides base_url. |
timeout_seconds | No | Request timeout in seconds. |
max_retries | No | Maximum number of retry attempts. |
base_delay_seconds | No | Base delay between retries. |
max_delay_seconds | No | Maximum delay between retries. |
Observability
With this integration, Respan auto-captures:- Agent runs — each agent execution as a span
- LLM calls — model, input/output messages, token usage
- Errors — failed runs and error details