Skip to content

Commit 3f86981

Browse files
committed
remove docstring
1 parent bad8e64 commit 3f86981

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

sentry_sdk/integrations/claude_agent_sdk.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,3 @@
1-
"""
2-
Sentry integration for Claude Agent SDK (claude-agent-sdk).
3-
4-
This integration instruments the Claude Agent SDK to capture AI-related
5-
telemetry data, including prompts, responses, token usage, and cost information.
6-
7-
The integration supports:
8-
- query() function for one-shot queries
9-
- ClaudeSDKClient for interactive sessions
10-
11-
Span hierarchy:
12-
- invoke_agent: Wraps the entire agent invocation (query or client session)
13-
- gen_ai.chat: Individual LLM interactions within the agent invocation
14-
- execute_tool: Tool executions detected in the message stream
15-
16-
Usage:
17-
import sentry_sdk
18-
from sentry_sdk.integrations.claude_agent_sdk import ClaudeAgentSDKIntegration
19-
20-
sentry_sdk.init(
21-
dsn="...",
22-
integrations=[ClaudeAgentSDKIntegration()],
23-
traces_sample_rate=1.0,
24-
send_default_pii=True, # Required to capture prompts/responses
25-
)
26-
"""
27-
281
from functools import wraps
292
from typing import TYPE_CHECKING
303

0 commit comments

Comments
 (0)