-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Comparing changes
Open a pull request
base repository: getsentry/sentry-javascript
base: develop
head repository: getsentry/sentry-javascript
compare: dev-combined-integrations
- 13 commits
- 19 files changed
- 2 contributors
Commits on Oct 31, 2025
-
feat(node): Add Claude Code Agent SDK instrumentation
Adds Sentry tracing instrumentation for the @anthropic-ai/claude-agent-sdk following OpenTelemetry Semantic Conventions for Generative AI. Key features: - Captures agent invocation, LLM chat, and tool execution spans - Records token usage, model info, and session tracking - Supports input/output recording based on sendDefaultPii setting - Provides createInstrumentedClaudeQuery() helper for clean DX Due to ESM-only module constraints, this integration uses a helper function pattern instead of automatic OpenTelemetry instrumentation hooks. Usage: ```typescript import { createInstrumentedClaudeQuery } from '@sentry/node'; const query = createInstrumentedClaudeQuery(); ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>Configuration menu - View commit details
-
Copy full SHA for ccc8a6a - Browse repository at this point
Copy the full SHA ccc8a6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 469f1cd - Browse repository at this point
Copy the full SHA 469f1cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 640ac7a - Browse repository at this point
Copy the full SHA 640ac7aView commit details -
fix(node): Add SEMANTIC_ATTRIBUTE_SENTRY_OP and improve error handlin…
…g in Claude Code integration - Add SEMANTIC_ATTRIBUTE_SENTRY_OP to all span creation calls (invoke_agent, chat, execute_tool) - Capture exceptions to Sentry in catch block with proper mechanism metadata - Ensure child spans (currentLLMSpan, previousLLMSpan) are always closed in finally block - Prevents incomplete traces if generator exits early
Configuration menu - View commit details
-
Copy full SHA for c8889dc - Browse repository at this point
Copy the full SHA c8889dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aa0841 - Browse repository at this point
Copy the full SHA 7aa0841View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17a14aa - Browse repository at this point
Copy the full SHA 17a14aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5da3edf - Browse repository at this point
Copy the full SHA 5da3edfView commit details -
Configuration menu - View commit details
-
Copy full SHA for b72113e - Browse repository at this point
Copy the full SHA b72113eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09e6980 - Browse repository at this point
Copy the full SHA 09e6980View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32b9eb8 - Browse repository at this point
Copy the full SHA 32b9eb8View commit details -
feat(node): Add OpenAI Codex SDK integration
Add instrumentation for the OpenAI Codex SDK (@openai/codex-sdk), enabling automatic tracing of AI agent operations, LLM interactions, and tool executions. This integration follows the same patterns as the Claude Code integration and uses the shared GenAI attribute constants and utilities. **Features**: - Automatic instrumentation via createInstrumentedCodex() helper - Tracks agent invocations, chat turns, and tool executions as spans - Supports custom agent naming for differentiating instances - Records input prompts and output responses (respects sendDefaultPii) - Classifies tools by type (function/extension/datastore) - Thread-based execution model with multi-turn support **Integration Methods**: - createInstrumentedCodex() - High-level helper for instant setup - patchCodexConstructor() - Low-level constructor patching - instrumentCodexInstance() - Instance-level instrumentation Follows OpenTelemetry Semantic Conventions for Generative AI. Ref: https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/
Configuration menu - View commit details
-
Copy full SHA for 1566ff9 - Browse repository at this point
Copy the full SHA 1566ff9View commit details -
feat(node): Add AI SDK provider helper for Claude Code integration
Adds createInstrumentedQueryForProvider() helper to enable Claude Code instrumentation when using AI SDK providers. This allows users to wrap the query function for use with third-party AI SDK integrations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3c44c23 - Browse repository at this point
Copy the full SHA 3c44c23View commit details -
fix: Resolve TypeScript strict null checks after rebase
Fixed type errors introduced from master branch: - handlers.ts: Added optional chaining for handlers array push - debug-ids.ts: Properly type-guard debug ID lookups - instrument.ts: Added optional chaining for handlers array push - worker.ts: Added filename null check before Map.set 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 816d0e0 - Browse repository at this point
Copy the full SHA 816d0e0View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff develop...dev-combined-integrations