Exporter for Anthropic Agent SDK telemetry to Respan
Project description
Respan Exporter for Anthropic Agent SDK
Exporter for Anthropic Agent SDK telemetry to Respan.
Quickstart
import asyncio
from claude_agent_sdk import ClaudeAgentOptions
from respan_exporter_anthropic_agents.respan_anthropic_agents_exporter import (
RespanAnthropicAgentsExporter,
)
exporter = RespanAnthropicAgentsExporter()
async def main() -> None:
options = exporter.with_options(
options=ClaudeAgentOptions(
allowed_tools=["Read", "Glob", "Grep"],
permission_mode="acceptEdits",
)
)
async for message in exporter.query(
prompt="Analyze this repository and summarize architecture.",
options=options,
):
print(message)
asyncio.run(main())
Real Gateway Integration Test
Run the live integration test to verify:
- Claude Agent SDK traffic goes through Respan gateway (no direct Anthropic key required).
- Exporter uploads tracing payloads to real Respan ingest endpoint.
Required environment variables:
export RUN_REAL_GATEWAY_TEST=1
export RESPAN_API_KEY="your_respan_key"
Optional environment variables:
# Defaults to RESPAN_BASE_URL, KEYWORDSAI_BASE_URL, then https://api.respan.ai
export RESPAN_GATEWAY_BASE_URL="https://api.respan.ai"
# Optional Anthropic-compatible gateway base URL override
export RESPAN_ANTHROPIC_BASE_URL="https://api.respan.ai"
# Optional model override
export RESPAN_GATEWAY_MODEL="claude-sonnet-4-5"
Run test:
python -m unittest tests.test_real_gateway_integration -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file respan_exporter_anthropic_agents-1.0.0.tar.gz.
File metadata
- Download URL: respan_exporter_anthropic_agents-1.0.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.8 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
521e7ab4bad2b80d4a5e4ce0cf4a1679f4434671d70278153d49c1511a643008
|
|
| MD5 |
944ef10c65eaec4750cf69a9cc2e1309
|
|
| BLAKE2b-256 |
a1fadf50209854bc45741471e99e8afa0c57d40ecae6c07c374eeddb7c69c6fa
|
File details
Details for the file respan_exporter_anthropic_agents-1.0.0-py3-none-any.whl.
File metadata
- Download URL: respan_exporter_anthropic_agents-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.8 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6335b1518581250a186d9de14e59f4f77090ba016473b622720d7ce9fdc95a2
|
|
| MD5 |
3eec5381538e14fd365e0bf730a60e87
|
|
| BLAKE2b-256 |
c3eb54f417f21a6d6ced0a8f68873498e35bf88757db973b232507eee72658b5
|