Skip to content

Commit dae2310

Browse files
committed
fix: add note QC does not support metrics
1 parent 253c34e commit dae2310

File tree

1 file changed

+3
-0
lines changed
  • content/200-orm/200-prisma-client/600-observability-and-logging

1 file changed

+3
-0
lines changed

content/200-orm/200-prisma-client/600-observability-and-logging/240-metrics.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ If you want an even more detailed insight into your Prisma Client's performance,
1919

2020
The `metrics` preview feature has been **deprecated** as of [Prisma ORM v6.14.0](https://github.com/prisma/prisma/releases/tag/6.14.0) and will be removed in Prisma ORM v7.
2121

22+
The feature is not supported when using Prisma ORM with the [query compiler architecture](/orm/prisma-client/setup-and-configuration/no-rust-engine) (setting `engineType` to 'client' in the `generator` block of your `schema.prisma` file).
23+
2224
Metrics were originally introduced to provide insights into query and connection behavior. With the changes in the new [query compiler architecture](/orm/prisma-client/setup-and-configuration/no-rust-engine), these values no longer reflect the system reliably. Because of this, we are not continuing support for this feature.
2325

2426
If you need visibility into query or connection pool behavior, we recommend using the *native metrics provided by your database driver* (for example, pool statistics) or setting up *OpenTelemetry* for a more complete observability solution.
2527

2628
:::
2729

2830

31+
2932
## About metrics
3033

3134
You can export metrics in JSON or Prometheus formats and view them in a console log, or integrate them into an external metrics system, such as [StatsD](https://github.com/statsd/statsd) or [Prometheus](https://prometheus.io/). If you integrate them into an external metrics system, then you can view the metrics data over time. For example, you can use metrics to help diagnose how your application's number of idle and active connections changes.

0 commit comments

Comments
 (0)