Closed
Description
Description
It seems that Express v5 is actually close: https://github.com/expressjs/express/releases/tag/v5.0.0
We should ensure we have support for this. This means ensuring that this is supported upstream in the OTEL instrumentation.
Current Status
As of now, you can use the Sentry SDK with Express v5, there is just limited support for some of the features:
- Error monitoring works normally
- There is limited tracing support. Spans generated by Express v5 may lack parametrized routes as of now
- You will see the following warning log if you have tracing enabled:
[Sentry] express is not instrumented. Please make sure to initialize Sentry in a separate file that you --import when running node. For the time being, you can silence this warning by configuringdisableInstrumentationWarnings: truein yourinit({})call.
Reacted by Joerg Baier, Liang-Shih Lin, Jon Thompson, zbarbuto and Jane Jeon
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsNo status
Activity
joergbaier commentedon Sep 15, 2024
I would appreciate sentry supporting express v5. Having support here would help express finally get v5 released under the "latest" tag. 🙏
Sentry also integrates with GQL and I believe the
@apollo/server+expresspairing is fairly popular.apollographql/apollo-server#7928
timfish commentedon Sep 19, 2024
Otel PR:
AbhiPrasad commentedon Nov 12, 2024
Update: open-telemetry/opentelemetry-js-contrib#2437 (comment)
kvjoshi commentedon Jan 21, 2025
is it suggested to use sentry for monitoring in production with express v5 (performance , profiling and error tracing ) ?
we are migrating a few projects to v5 and i encountered the instrumentation warning , landed here i guess its going to take some time before sentry supports v5 . can we have a timeline for that ?
andreiborza commentedon Jan 21, 2025
@kvjoshi we are still waiting on open-telemetry/opentelemetry-js-contrib#2437, at the moment we don't have an ETA. You can subscribe to this issue to get notified when we have updates.
mydea commentedon Jan 21, 2025
Also, just one note here: You should be able to use Sentry with Express 5, you'll just lack a few performance-related data points: You will not have properly parametrized routes, as well as e.g. middleware spans will be lacking. Error monitoring and basic http-server tracing will still work, even now!
github-actions commentedon Feb 24, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #15380, which was included in the 9.2.0 release.
Silence Sentry Express-5 instrumentation warning