-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: document how tracing and metrics works for driver adapters #6079
base: main
Are you sure you want to change the base?
Conversation
Absolute URL checkNo absolute URLs to prisma.io/docs found. |
Redirect checkThis PR probably requires the following redirects to be added to static/_redirects:
|
When using a [driver adapter](/orm/overview/databases/database-drivers#driver-adapters), the following metrics are not available as the connetion management and the connection pool is handled by the external database driver itself: | ||
|
||
- `prisma_pool_connections_closed_total` | ||
- `prisma_pool_connections_opened_total` | ||
- `prisma_pool_connections_open` | ||
- `prisma_pool_connections_busy` | ||
- `prisma_pool_connections_idle` | ||
- `prisma_client_queries_wait_histogram_ms` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metrics that are not available for driver adapters
- `prisma:client:operation` | ||
- `prisma:client:serialize` | ||
- `prisma:engine` | ||
- `prisma:engine:db_query`: details of the first SQL query or command... | ||
- `prisma:engine:db_query`: ...details of the next SQL query or command... | ||
- `prisma:engine:serialize` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adapted trace spans for driver adapters
- `prisma:engine:db_query`: ...details of the next SQL query or command... | ||
- `prisma:engine:serialize` | ||
|
||
Note the missing spans for `prisma:client:connect` and `prisma:engine:connection`. `prisma:engine:db_query` might also be tracking a slightly different stage of query execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing tracing spans for driver adapters
content/200-orm/200-prisma-client/600-observability-and-logging/240-metrics.mdx
Outdated
Show resolved
Hide resolved
…g/240-metrics.mdx
Deploying docs with
|
Latest commit: |
ca26588
|
Status: | ✅ Deploy successful! |
Preview URL: | https://3a344e93.docs-51g.pages.dev |
Branch Preview URL: | https://janpio-driver-adapters-traci.docs-51g.pages.dev |
Note: Only merge as final step of https://github.com/prisma/team-orm/issues/1187