Prisma Optimize does not show queries
I've installed the extension, it shows the prompt in my terminal, but the web UI does not show queries.
18 Replies
We changed a few things about Optimize (today actually!)
Which version of the extension are you using?
i'm very cutting edge 😉 @Jon Harrell
just for background, i've never gotten it to work, but this week i'm tasked with solving some performance issues that i think optimize can help with
I’ve unfortunately got an appointment to run to, but it should work if you start the recording and then start the app. I’m not sure why it wouldn’t. I’ll double check with our engineers
also i use prisma accelerate
i've had 'tracing' on forever, because i love open telemetry... not sure what other clues would help
Might have something to do with accelerate. Would it be possible to update your code and connection strings such that you connect directly when in dev?
we use a direct DATABASE_URL in development, but we still need
withAccelerate
so that the client supports cacheStrategy
Oh duh you’re right. Okay, let me test this out
i don't think that it's it... i just removed
withAccelerate
and my cacheStrategy
entries, and it still isn't coming through
my prisma user id is clm0yz2qp003kpq0h0b80tng0
my url (which i assume is my optimize project account id?) is https://optimize.prisma.io/clm0yz2pe003ipq0h6sh2x91o
i thought it was weird they were different, so i tried logging out and in, and that didn't helpheard back from engineering: try extending with Optimize first.
K k! I’m out for the day, I’ll try that tomorrow, thanks for following up!
No problem at all, thanks for your patience 🙂
@Jon Harrell just getting back to this, no dice:
Bizarre. Let me review the info I was given again
i'm curious how it uploads the traces to you? like i said, we also have our own opentelemetry tooling, so i wonder if that's interfering
this is
instrumentation.node.ts
ok, when i disable my own instrumentation, i get this error: https://github.com/prisma/optimize-feedback/issues/11
GitHub
Error: "prisma:client span is expected to be entered in the client ...
Describe the bug When using Prisma Optimize with Prisma ORM and following the setup instructions, the following error occurs: Error: prisma:client:operation span is expected to be entered in the cl...
Alrighty, this is a bit more complex than my knowledge 😅
What I'm doing is writing this up and getting all the info over to our engineers. Would you mind if I shared the above code snippets?
Also, in case it is a bug, it might be worth opening a new issue in the
optimize-feedback
repo.yup! all that code is perfectly shareable
i'm excited to help, i think this product is much needed, and will be very helpful
I (and the whole team) is super appreciative. And I'll give them that feedback! Thank you so much for your time thus far