Closed exejutable closed 3 years ago
Thanks for reporting @exejutable -- if your MySQL query happened during a transaction it should be reported. If it wasn't there's myriad reasons why not.
The first culprit might be the promise-mysql
library. While we instrument bluebird
and mysql
both, we don't explicitly instrument promise-mysql
. If promise-mysql
is doing something we didn't anticipate with our BlueBird instrumentation that may result in a span generated outside of a transaction, which means it won't be reported. When possible, we recommend folks move over to Node.js native promises -- our native promises instrumentation tends to be more stable than instrumentation of third party promise libraries.
All that said -- there's lots of other reasons a span might be missing. The next best step for us would be a reproduction of the issue. If you had example code that demonstrates the problem that usually lets us zero in on why something might be missing. Do you think that's something you'd be able to provide?
Y check this in a playground it was an import order problem
thanks for the answer!
Im using node-promise-mysql is a bluebird wrapper of mysql.
Question
Why i dont see the span of mysql? check the kibana apm image
Environment
Configuration
PACKAGE.JSON