-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Bug
Copy link
Labels
Package: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDK
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
9.2.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
Sentry.init({
dsn: config.dsn || undefined,
release: config.release || version || undefined,
environment: config.environment || undefined,
integrations: [
Sentry.extraErrorDataIntegration({
depth: 10,
captureErrorCause: true,
}),
],
transport: config.transport as TransportType,
});
type TransportType = Sentry.NodeOptions['transport'];
after upgrading from SDK 7 to 9, this error occurs. The Sentry init Api itself is seemingly the same / types didn't change, but when providing an undefined for transport
the error is now thrown.
Steps to Reproduce
set transport
to undefined
Expected Result
no error
Actual Result
TypeError: options.transport is not a function
Metadata
Metadata
Assignees
Labels
Package: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDK
Type
Projects
Status
No status