Next.js Discord

Discord Forum

Server Actions + Prisma + Sentry = no Sentry Prisma transactions

Unanswered
Philippine Crocodile posted this in #help-forum
Open in Discord
Philippine CrocodileOP
i'm using server actions, prisma and sentry; for some reason i can't get prisma transactions to show up in sentry when using a server actions like:
// actions/create.js
"use server"

export async function createPost(...) {
  ...
  db.post.create(...)
  ...
}


but when i use a list it works
// actions/list.js
export async function listPosts(...) {
  ...
  db.post.findMany(...)
  ...
}


could this be because the createPost action starts in the client, and the prisma integration only works in the server? 😕

0 Replies