PostgreSQL client

AppSignal for Node.jsThis feature requires version 3.0.0 or higher.
pg packageThis feature requires version 7.0.0 or higher.

Default instrumentations can be disabled via the disableDefaultInstrumentations config option. You can read more about how to configure this in our Configuration Options documentation.

The AppSignal for Node.js integration for PostgreSQL, using the pg package.


The PostgreSQL client is instrumented automatically by the AppSignal for Node.js package. No additional setup is required to instrument PostgreSQL in your application.


The PostgreSQL integration will send AppSignal a child span for each query. The child span represents the duration of the query and contains the SQL query sanitized.

This instrumentation will also work with any library that depends on the pg package as its database adapter, such as Knex or TypeORM.