Extension submission: sentry-prisma-middleware

Open Beginner friendly
#8,578 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
json, postgresql
Domain
content

Research direction

Open packages/ui/src/data/extensions/community.json and follow the existing extension entries. Add the submitted sentry-prisma-middleware entry with its provided metadata, then check that the JSON remains valid and the entry matches the surrounding format.

Written by the indexing model from the issue text.

Description

Please add this extension to packages/ui/src/data/extensions/community.json.

Extension: sentry-prisma-middleware
NPM: https://www.npmjs.com/package/sentry-prisma-middleware
GitHub: https://github.com/Ritwikcp-ctrl/sentry-prisma-middleware

{
  "slug": "sentry-prisma-middleware",
  "name": "Sentry Middleware",
  "package": "sentry-prisma-middleware",
  "source": "community",
  "status": "experimental",
  "tldr": "Maps Prisma ORM 8 activity trees (transaction → orm-call → statement) to Sentry spans, with query filtering and custom attributes.",
  "description": "Maps Prisma 8 activity tree (transaction→orm-call→statement) to Sentry spans. Adds `shouldTrace` for query filtering & `customAttributes` for business context.\n\nNo `contract.prisma` changes. Runtime setup:\n\n```ts\nimport { sentryMiddleware } from 'sentry-prisma-middleware';\nconst db = postgres({\n  contract,\n  url: process.env.DATABASE_URL!,\n  middleware: [sentryMiddleware({\n    shouldTrace: (a) => a.kind === \"statement\",\n    customAttributes: () => ({ env: \"prod\" })\n  })]\n});\n```\n\nNo DB extensions needed. Requires `@prisma/orm-postgres` (rc.19+) & `@sentry/node` (11.1.0+).",
  "databases": [
    "postgresql"
  ],
  "tags": [
    "sentry",
    "observability",
    "tracing",
    "middleware"
  ],
  "repo": "https://github.com/Ritwikcp-ctrl/sentry-prisma-middleware",
  "author": {
    "name": "Ritwikcp-ctrl",
    "url": "https://github.com/Ritwikcp-ctrl"
  },
  "addedAt": "2026-10-23"
}
Dominant language
MDX
Stars
1.1k
Forks
1k
Avg merge
9h 8m
Merged PRs (30d)
260

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/web

All issues in prisma/web

Similar issues

More Content issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.