Skip to content

MySQL tracing does not support connection pools #3352

@zchristopoulos

Description

@zchristopoulos

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

6.2.3

Description

I have noticed that when a mysql query is ran via a connection pool, the tracing integration does not attach to the query. I looked through the source code of mysqljs and found that Pool.prototype.query directly calls Connection.createQuery and sends a fully structured Query object into Connection.prototype.query via the sql parameter. Because of this, the query is ignored by the tracing integration as the callback is not passed inside the standard values or callback parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions