P
Prisma3mo ago
Satont

`client.metrics()` Error: Method not implemented.

Why? Is there any linked issues when it will be done? It was working on rust engine, but not working currently with new
generator client {
provider = "prisma-client"
generator client {
provider = "prisma-client"
3 Replies
Prisma AI Help
Prisma AI Help3mo ago
You opted for speed from this bot. Let's conjure up an answer right now! The error Method not implemented when calling client.metrics() (or client.$metrics) is expected when using the new Prisma ORM architecture with the prisma-client provider and the queryCompiler and driverAdapters feature flags. This is because the Prisma Metrics feature is not supported with the new JavaScript-based query engine and driver adapters. Metrics were only available with the Rust engine, and support for them is being discontinued. This is confirmed in this GitHub issue, where a Prisma team member states that the lack of metrics support with the new architecture is planned and not a bug. Additionally, the official deprecation notice states that the metrics feature will be retired between June and August 2025 due to low usage and compatibility issues with the Query Compiler. There are currently no open issues or plans to implement metrics for the new architecture. If you need metrics, you must continue using the Rust engine for now, but be aware that the feature is being deprecated and will not be available in future versions using the new architecture. Summary:
- Metrics are not supported with the new prisma-client provider and driver adapters. - The feature is deprecated and will be removed. - No plans to add metrics support to the new architecture. References:
Metrics not working with queryCompiler
Metrics deprecation notice ✅ Great, thanks for letting us know that this solved your question!
Satont
SatontOP3mo ago
@Prisma AI Help are you still able to help? Uh, ok.
Nurul
Nurul3mo ago
You can always use #ask-ai to continue conversation with the Prisma AI help bot.

Did you find this page helpful?