-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
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.10.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
-
Create a new Node.js project
-
Install the required dependencies:
npm install @sentry/node ai
-
Create the following files:
// index.js
import * as Sentry from '@sentry/node'
Sentry.init({
tracesSampler: (ctx) => {
return 0.01
},
spotlight: true,
})
await import("./otherfile.js")
// otherfile.js
import { streamText } from "ai";
console.log(streamText({model: "gpt-5"}))
-
Run the application with:
$ node index.js
Expected Result
DefaultStreamTextResult {
// snip
}
Actual Result
Promise { <pending> }
Metadata
Metadata
Assignees
Projects
Status
No status