Documentation forSolarWinds Observability SaaS

Node.js trace context in queries

Adding trace context to application queries provides the ability to correlate the queries from a traced transaction, and if sampled, the queries to the transaction trace detail. This feature is also a requirement for the integration of APM with DBO.

Enabling

Trace context propagation to queries is disabled by default. It can be enabled in the Node.js Library using this configuration option:

Support Matrix

Database type

Client library/framework

Versions supported

Notes
MySQL mysql2 Trace context is not inserted into server-side prepared statements.
PostgreSQL pg SolarWinds does not recommend enabling this feature if your application uses server-side prepared statements, because the inserted context will likely be incorrect for executions of the statement.