`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
3 Replies
You opted for speed from this bot. Let's conjure up an answer right now!
The error
- Metrics are not supported with the new
Metrics not working with queryCompiler
Metrics deprecation notice ✅ Great, thanks for letting us know that this solved your question!
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!
@Prisma AI Help are you still able to help?
Uh, ok.
You can always use #ask-ai to continue conversation with the Prisma AI help bot.