Knex.js

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

Upgrading from AppSignal for Node.js 2.x? Read about integration changes between 2.x and 3.x in the Migration Guide.

The AppSignal for Node.js integration for Knex.js (knex) v2.0.0+.

This instrumentation will also work with any library that depends on the knex package, such as Bookshelf.js.

Installation

Knex.js is instrumented automatically by the AppSignal for Node.js package. No additional setup is required to instrument your Knex.js application.

Features

The Knex.js integration will record a child span representing the execution time of each query and containing the SQL query sanitized.

Need more help?

Contact us and speak directly with the engineers working on AppSignal. They will help you get set up, tweak your code and make sure you get the most out of using AppSignal.

Contact us

Start a trial - 30 days free

AppSignal is a great way to monitor your Ruby, Elixir & Node.js applications. Works great with Rails, Phoenix, Express and other frameworks, with support for background jobs too. Let's improve your apps together.

Start a trial