Skip to content

Commit 539bc83

Browse files
authored
docs: describe the sqlcommenter plugin infrastructure (#7345)
* docs: desribe the sqlcommenter plugin infrastructure Add docs about the [sqlcommenter](https://google.github.io/sqlcommenter/) support in Prisma Client added in Prisma 7.1.0. * Add sqlcommenter to cSpell.json * Add missing sql field * Remove useless remark
1 parent 736ca66 commit 539bc83

File tree

5 files changed

+612
-1
lines changed

5 files changed

+612
-1
lines changed

cSpell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
"Deepgram",
156156
"PGSSLMODE",
157157
"pgloader",
158+
"sqlcommenter",
158159
"unikernel",
159160
"Mikro",
160161
"databaseto",

content/200-orm/200-prisma-client/600-observability-and-logging/250-opentelemetry-tracing.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Tracing gives you a highly detailed, operation-level insight into your Prisma OR
1313

1414
:::
1515

16+
:::tip Correlate database queries with traces
17+
18+
You can add the `traceparent` header to your SQL queries as comments using the [`@prisma/sqlcommenter-trace-context`](/orm/prisma-client/observability-and-logging/sql-comments#trace-context) plugin. This enables correlation between distributed traces and database queries in your monitoring tools.
19+
20+
:::
21+
1622

1723
## About tracing
1824

0 commit comments

Comments
 (0)