You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/200-orm/200-prisma-client/600-observability-and-logging/240-metrics.mdx
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ If you want an even more detailed insight into your Prisma Client's performance,
19
19
20
20
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.
21
21
22
+
**The `metrics` preview feature is only available in Prisma ORM versions ≤6.13.x.** If you are using Prisma ORM v6.14.0 or later, the `$metrics` API is no longer available.
23
+
22
24
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
25
24
26
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.
@@ -61,18 +63,33 @@ You can [add global labels to your metrics data](#global-labels) to help you gro
61
63
62
64
## Prerequisites
63
65
66
+
:::warning[Version compatibility]
67
+
68
+
The `metrics` preview feature is **only available in Prisma ORM versions ≤6.13.x**. It has been removed in v6.14.0 and later versions.
69
+
70
+
:::
71
+
64
72
To use Prisma Client metrics, you must do the following:
65
73
66
-
1.[Install the appropriate dependencies](#1-install-up-to-date-prisma-orm-dependencies).
0 commit comments