brookmg
brookmg
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
Sadly can't share the codebase but the lastest update isn't working either. 1.0.1.
export const MClient = new PrismaClient({
log: [
{ emit: "stdout", level: "info" },
{ emit: "stdout", level: "warn" },
{ emit: "stdout", level: "error" },
{ emit: "event", level: "query" },
],
}).$extends(
withOptimize({ apiKey: process.env.OPTIMIZE_API_KEY }),
).$extends(readReplicas({
url: process.env.DATABASE_URL_REPLICA,
}));
export const MClient = new PrismaClient({
log: [
{ emit: "stdout", level: "info" },
{ emit: "stdout", level: "warn" },
{ emit: "stdout", level: "error" },
{ emit: "event", level: "query" },
],
}).$extends(
withOptimize({ apiKey: process.env.OPTIMIZE_API_KEY }),
).$extends(readReplicas({
url: process.env.DATABASE_URL_REPLICA,
}));
This is how I currently configured it but nothing shows up on the dashboard
32 replies
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
Well I'm using the client as is, there is no driver adapter involved.
32 replies
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
What flag can we use to make optimize log verbose?
32 replies
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
I don't use the other services. I did attempt changing the order of extends but no luck
32 replies
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
I'm using main / replica setup using @prisma/extension-read-replicas extension as well. Not sure if that's affecting it somehow. @Nurul (Prisma)
32 replies
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
Is that how it works normally?
32 replies
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
Is there a flag to pass to make it log its issues?
32 replies
PPrisma
Created by samuelcole on 9/10/2024 in #help-and-questions
Optimize is not showing queries
I have been facing the same issue since the beta. Not sure why it's not working either
32 replies