-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry can't instument express if it is bundled #15017
Comments
Hello, thanks for writing in! In order to know what exactly is the issue here we would need some more context about your project. Can you please share a small reproduction example and share how you set up Sentry like with your Sentry.init. |
The example would be https://github.com/evorto-app/app |
Thanks for providing the example! We might just need docs for this as we have an open issue for this (putting it here for reference): getsentry/sentry-docs#10416 |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.48.0
Framework Version
Express 4.21.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Use sentry for node in an angular ssr appllication that is based on express.
Expected Result
Sentry can instrument express
Actual Result
Sentry comlains that express is not instrumented even through the instrument file was preloaded with
--import
.My guess is that since angular bundles express into the server, sentry misses out on the import that it tries to wrap, leading to it not instrumenting express. I would be thankful for some ideas on how this could be improved.
Also if it is just adding a bunch of middlewares and such
The text was updated successfully, but these errors were encountered: