Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getsentry/sentry-javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: develop
Choose a base ref
...
head repository: getsentry/sentry-javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev-combined-integrations
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 13 commits
  • 19 files changed
  • 2 contributors

Commits on Oct 31, 2025

  1. 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]>
    codyde and claude committed Oct 31, 2025
    Configuration menu
    Copy the full SHA
    ccc8a6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    469f1cd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    640ac7a View commit details
    Browse the repository at this point in the history
  4. 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
    codyde committed Oct 31, 2025
    Configuration menu
    Copy the full SHA
    c8889dc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7aa0841 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    17a14aa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5da3edf View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b72113e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    09e6980 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    32b9eb8 View commit details
    Browse the repository at this point in the history
  11. 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/
    codyde committed Oct 31, 2025
    Configuration menu
    Copy the full SHA
    1566ff9 View commit details
    Browse the repository at this point in the history
  12. 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]>
    codyde and claude committed Oct 31, 2025
    Configuration menu
    Copy the full SHA
    3c44c23 View commit details
    Browse the repository at this point in the history
  13. 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]>
    codyde and claude committed Oct 31, 2025
    Configuration menu
    Copy the full SHA
    816d0e0 View commit details
    Browse the repository at this point in the history
Loading