Prisma extension typing with metrics
How can I get proper typing when using dynamic client extensions, while also using the metrics preview feature?
I'm currently on: Prisma v.4.16.2
In looking for answers I see this Github Issue that seems to indicate this is not possible, in which case I'd love some feedback about what's the best way forward: https://github.com/prisma/prisma/discussions/21123
I also see here from another metrics-related answer in Discord that the metrics feature is going away in v7 in favour of OpenTelemetry: https://github.com/prisma/prisma/discussions/27898
I will update to v7 eventually but wondering if I have a path forward with my current set up.
Reduced repro in comments
I'm currently on: Prisma v.4.16.2
In looking for answers I see this Github Issue that seems to indicate this is not possible, in which case I'd love some feedback about what's the best way forward: https://github.com/prisma/prisma/discussions/21123
I also see here from another metrics-related answer in Discord that the metrics feature is going away in v7 in favour of OpenTelemetry: https://github.com/prisma/prisma/discussions/27898
I will update to v7 eventually but wondering if I have a path forward with my current set up.
Reduced repro in comments
GitHub
Question I've enabled the metrics generator, and it works, but it doesn't typecheck, (VsCode is saying $metrics does not exist). I'm using the dynamic client extensions feature, so this...
GitHub
Question Deprecated metrics Preview feature (which will be removed in Prisma 7). What to use instead? How to reproduce (optional) No response Expected behavior (optional) No response Information ab...