You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Above is my sentry instrument js and I import that file in the index.js like below import { Sentry } from './instrument.js'
I confirmed it gets the correct env values. My express version is v5. And I use esm mode to import so I run this command to import instrument.js nodemon --import ./build/instrument.js build/index.js
When I use express v4, it worked but after migrate it shows sentry warning again
Hi, thanks for writing in! You're getting this warning because Express 5 is not yet supported by Opentelemetry's Express instrumentation. See open-telemetry/opentelemetry-js-contrib#2435
For the moment, you will not get Express spans in your traces. As for error capturing, I'm not a 100% sure but I think it should work (tagging @AbhiPrasad or @timfish to confirm).
Error monitoring should work fine. I updated the tracking issue here: #13674 to show the current state right away, hopefully making this a bit clearer. I'll close this as a duplicate, you can follow along in the linked issue! I also opened a docs PR to call this out for future readers: getsentry/sentry-docs#12465
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.51.0
Framework Version
Express v5
Link to Sentry event
No response
Reproduction Example/SDK Setup
Above is my sentry instrument js and I import that file in the index.js like below
import { Sentry } from './instrument.js'
I confirmed it gets the correct env values. My express version is v5. And I use esm mode to import so I run this command to import instrument.js
nodemon --import ./build/instrument.js build/index.js
When I use express v4, it worked but after migrate it shows sentry warning again
[1] [Sentry] express is not instrumented. Please make sure to initialize Sentry in a separate file that you
--import
when running node, see: https://docs.sentry.io/platforms/javascript/guides/express/install/esm/.Steps to Reproduce
Expected Result
There should no sentry warning
Actual Result
[1] [Sentry] express is not instrumented. Please make sure to initialize Sentry in a separate file that you
--import
when running node, see: https://docs.sentry.io/platforms/javascript/guides/express/install/esm/.There is sentry warning
The text was updated successfully, but these errors were encountered: