Prisma 8 support for `prismaIntegration`
@chargome ya está trabajando en esto.
Desde el 9/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Prisma 8 ("Prisma Next", @prisma/orm-postgres, currently 8.0.0-rc.8) ships no tracing surface. It never reads the global PRISMA_INSTRUMENTATION helper, so prismaIntegration is inert. Only raw pg spans from postgresIntegration remain: one flat db span per statement, plus Prisma's marker-verification and BEGIN/COMMIT housekeeping queries as siblings. The v7 span tree (prisma:client:operation with model/method, serialize, connect, nested db_query) is gone.
Goal: roughly the same spans on Prisma 8 as on v7.
Approach: instrument via orchestrion, like the other server-utils integrations. No user code needed, works with the runtime loader hook and the bundler plugins.
- Patch the
CollectionImplmethods (create,createAll,upsert,update,updateAll,delete,deleteAll,all,first,count,aggregate) in@prisma/orm-family-sql/dist/orm-client.mjsforprisma:client:operation(originauto.db.prisma,model/methodattributes). - Patch
execute(plan, options)on the runtime base class in@prisma/orm-family-sql/dist/runtime.mjsso thepgquery spans nest under the operation. The plan carriesmeta.laneand annotations. - No
serializespan.connectonly if the lazy pool creation in@prisma/orm-postgres/dist/runtime.mjsis patchable cleanly. - Wire it through
prismaIntegrationso@sentry/nodeand@sentry/cloudflare/nodejs_compatstay the entry points.
Scope:
- Orchestrion config + channel subscriber for the above.
- Extend
dev-packages/node-integration-tests/suites/tracing/prisma-orm-v8(currently pins the inert behaviour) to assert the v7-shaped tree. - Docs:
prismaIntegrationJSDoc and Sentry docs say "v6 and v7"; add v8.
Risks / constraints:
- Patch points live in
@prisma/orm-family-sql, a transitive dependency. The two files are unhashed, butversionRangemust be pinned tightly and revisited at 8.0 stable. .all()returns a thenable that only runs the query when awaited; check theAutokind's promise handling against that shape.- Prisma's marker-verification and
BEGIN/COMMITstatements will nest under the operation span, unlike v7. - v8 CLI needs Node ≥22.18;
DateTimecolumns decode toTemporal(global only on Node 26).
References:
- Prisma scorecard, "OpenTelemetry tracing spans: not in 8.0": https://github.com/prisma/orm/blob/main/scorecard/19-observability-and-lifecycle.md
- Telemetry design: https://github.com/prisma/orm/blob/main/docs/architecture%20docs/adrs/ADR%20024%20-%20Telemetry%20Schema.md
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.7k
- Forks
- 1.9k
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 576
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-javascript
-
Browser Bug Next.js Traces Waiting for: Product Owner
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-javascript#24672 · 1 comentario ·
-
Flaky Test React Router Framework Spans Tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/sentry-javascript#24348 · 1 comentario ·
-
javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-javascript#24200 · 2 comentarios ·
-
javascript Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
getsentry/sentry-javascript#24134 · 1 comentario ·
-
Cloudflare Workers javascript Tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-javascript#24051 · 1 comentario ·
Todos los issues de getsentry/sentry-javascript
Issues similares
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
Mend: dependency security vulnerability untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100