Documentation forSolarWinds Observability SaaS

Java 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 Java Library using these configuration options:

  • agent.sqlTag: This option must be set to true.

  • agent.sqlTagDatabases: This option should be used to restrict context insertion to the database(s) relevant to the instrumented application.

Support Matrix

Trace context is inserted only for statements from a transaction sampled for detailed tracing.

Database type

Client library/framework

Versions supported

MySQL JDBC
PostgreSQL JDBC