-
Notifications
You must be signed in to change notification settings - Fork 312
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
[BUG]: dd-trace throws error for express v4 when esbuild plugin is used #5056
Comments
Thank you for reporting the issue, we're looking into it 👍 |
(Note to self: Might be related to APMS-14365) |
Thank you for reporting the issue. I tried to reproduce it but had no success.
Thank you |
Hey guys, thanks for looking into this, really appreciate your quick responses. I was able to replicate the issue here https://github.com/hoangnd25/sst-dd-trace (SST v2 + CDK + Lambda). I just realised the issue is due to incompatible versions of dd-trace:
It seems to work after I update local dd-trace to Downgrade lambda nodejs layer to v117 also worked as it uses dd-trace |
Hey @hoangnd25 Thanks for providing more details and the reproducible example. The issue is indeed caused by incompatible versions of dd-trace. To fix it, we recommend updating your local dd-trace to version 5.29.0 or later, as it matches the changes in Lambda layer v118. |
@hoangnd25 Did you manage to solve your problem so we can close this issue ? |
Tracer Version(s)
4.53.0
Node.js Version(s)
22
Bug Report
I got an error when updated dd-trace for lambda:
The code is packaged using esbuild plugin.
The issue seems be missing qs hook when its trying to register instrument for express v4.
It looks like qs hook as removed as part of this change to support express v5
#4913
Packaged code generated by esbuild plugin
Reproduction Code
No response
Error Logs
No response
Tracer Config
No response
Operating System
No response
Bundling
ESBuild
The text was updated successfully, but these errors were encountered: