-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Package: astroIssues related to the Sentry Astro SDKIssues related to the Sentry Astro 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?
Self-hosted/on-premise
Which SDK are you using?
@sentry/astro
SDK Version
8.8.0
Framework Version
4.10.0
Link to Sentry event
No response
SDK Setup
integrations: [
sentry({
enabled: { client: false, server: true },
tracePropagationTargets: [],
}),
],Steps to Reproduce
- Upgraded the SDK to the latest version to address Node SDK generating Error: ENOENT: no such file or directory #12059 and Astro integration follow the guide will get a error ENOENT: no such file or directory, open '/Users/xxx/astro-project/node_modules/@sentry/astro/esm/@sentry/node' #12192
- Tried accessing
captureExceptionin different ways:
import { captureException } from '@sentry/astro';
import * as Sentry from '@sentry/astro';
(await import('@sentry/astro')).captureException;Expected Result
captureException should be available and usable, since the TypeScript types for the SDK mark it as present
Actual Result
Logging Sentry.captureException prints undefined, the property is absent from Sentry, seems not to be properly re-exported, while many other members of Sentry are present. I can access captureException when importing it directly from @sentry/node.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Package: astroIssues related to the Sentry Astro SDKIssues related to the Sentry Astro SDK
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status