Prisma

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 Prisma v4.2+.

Prisma is an ORM (Object Relation Mapping) tool for Node.js that allows you to manage and interact with your application's database. You can learn more about Prisma on their official website.

Installation

In order for Prisma to be instrumented automatically by the AppSignal for Node.js package, you must enable the tracing preview feature in your Prisma schema:

// schema.prisma
 
generator client {
  provider = "prisma-client-js"
  previewFeatures = ["tracing"]
}

Features

The Prisma integration will send AppSignal a child span for each query, along with other child spans representing the connection to the database and the serialisation process.

The child span for the query represents the duration of the query and contains the SQL query sanitized. If using Mongo, it contains the model and method name that was queried.

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