dd-trace-js
dd-trace-js copied to clipboard
DeprecationWarning: Buffer
Hi! We're seeing this error in the log that we're tracking back to protobuf.js
, which is in turn a dep of dd-trace
. Your module is the only reason for this dep to be included, is there a way you can upgrade or mitigate?
(node:7) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
We saw a similar message this morning, but tracked it back to the use of msgpack-lite
(which is a direct dependency of dd-trace
).
X-Ref: https://github.com/kawanet/msgpack-lite/issues/98
any update on this ?
Any update on this?
Given that the library was last updated 7 years ago and this issue still remains, it may be worth considering a different msgpack library
Keeping this thread alive.
Just wanted to check in -- is there any update on this? (looks like it's been open for 6 months now, and presumably is affecting every customer using dd-trace on modern Node?)
Looks like there is a fork that may fix this https://github.com/meetnow/msgpack-long-lite/commit/b7a42528919f05e2d61b13bc0fbd3b05b37fc300 ? (but haven't investigated closely)
Any timeline on this?
:(...