-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
10.45.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
The Anthropic SDK supports calling .withResponse() on the result of client.messages.create(), see https://platform.claude.com/docs/en/api/sdks/typescript#accessing-raw-response-data-e-g-headers. It seems that Sentry's integration does not maintain this API interface, since trying to call withResponse() on a wrapped result ends up with the error: result.withResponse is not a function
I believe this is the same issue as #19073, just for Anthropic instrumentation.
Steps to Reproduce
- Enable Anthropic integration (on by default)
- Call client.messages.create({ ... }).withResponse()
- Error is thrown.
Expected Result
Sentry's integration should not break this API.
Actual Result
result.withResponse is not a function
Additional Context
No response
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Metadata
Metadata
Assignees
Fields
Give feedbackProjects
Status