Skip to content

fix: Align Claude agent SDK trace parity between auto-instrumentation and wrappers#1638

Merged
Luca Forstner (lforst) merged 4 commits intomainfrom
lforst/claude-trace-parity
Mar 24, 2026
Merged

fix: Align Claude agent SDK trace parity between auto-instrumentation and wrappers#1638
Luca Forstner (lforst) merged 4 commits intomainfrom
lforst/claude-trace-parity

Conversation

@lforst
Copy link
Member

@lforst Luca Forstner (lforst) commented Mar 23, 2026

Align Claude Agent SDK tracing and e2e coverage with the real SDK across wrapper and auto-instrumentation.

  • replace the mock Claude SDK e2e setup with real 0.1.x and 0.2.x scenarios
  • share one versioned snapshot contract across wrapper and auto-hook coverage
  • add Claude canary dependency rules alongside the locked version matrix
  • fix Claude auto-instrumentation for real SDK exports and sync-stream query handling
  • trim cache-only metric key noise from Claude snapshots to keep parity diffs stable

Fixes #1593

@lforst Luca Forstner (lforst) changed the title fix(js): Align Claude agent SDK trace parity fix: Align Claude agent SDK trace parity Mar 23, 2026
@lforst Luca Forstner (lforst) changed the title fix: Align Claude agent SDK trace parity fix: Align Claude agent SDK trace parity between auto-instrumentation and wrappers Mar 23, 2026
@lforst Luca Forstner (lforst) merged commit 8e22361 into main Mar 24, 2026
48 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/claude-trace-parity branch March 24, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-instrumentation emits less detailed Claude Agent SDK traces than wrapper instrumentation

2 participants