Skip to content

Support Prisma Integration in Cloudflare / D1 #15466

Closed

Description

@tellisnz

Problem Statement

We use prisma with our D1 database.

At the moment we have the official sentry for Cloudflare library hooked up using just the D1 integration, but were wondering if there are plans/it is even possible to have the prisma integration as well?

Solution Brainstorm

If possible, copy over the prisma integration from node?

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Feb 24, 2025
  2. lforst commented on Feb 24, 2025

    @lforst
    Contributor

    Hi, we don't have any near-term plans for supporting Prisma on CF. Prisma instrumentation depends on OTEL and we are currently not using OTEL for cloudflare due to compat reasons. I'll put this in our backlog.

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Feb 24, 2025
  4. added theissue type on Mar 3, 2025
  5. sebws commented on Jan 3, 2026

    @sebws
    Contributor

    hi, is there any further update?

  6. 13 remaining items

  7. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jan 20, 2026
  8. sebws commented on Jan 20, 2026

    @sebws
    Contributor

    thanks very much! it does seem to have some issues. for me it does not look the same as it does in a node prisma integration.

    see this image from the cloudflare version. did you see anything like this? it's hard to list all the things missing, i hope it's clear enough it's missing db spans and other expected spans, happy to send further details on discord or something if you're interested, but i understand it's not exactly a supported feature so some bugs aren't unexpected 😋

    Image
  9. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jan 20, 2026
  10. JPeer264 commented on Jan 20, 2026

    @JPeer264
    Member

    Great idea to move over to discord. About this case (if there are any updates regarding this I'll post it here as well)

  11. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jan 20, 2026
  12. JPeer264 commented on Jan 21, 2026

    @JPeer264
    Member

    An update for others. The Prisma integration looks like that it works. It seems however, there are Prisma engines, which add more spans, that are not enabled for Cloudflare (at least not this Rust engine). That is why it might look like there are less spans here

  13. added this to the 11.0.0 milestone on Jan 27, 2026
  14. added a commit that references this issue on Jul 7, 2026
    ed670cd
  15. github-actions commented on Jul 7, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #21882, which was included in the 10.64.0 release.

  16. JPeer264 commented on Jul 7, 2026

    @JPeer264
    Member

    In case the changelog were skipped. This is actually possible with the new /nodejs_compat entrypoint. So you can just opt-in and do following now (remember to change the compatibility_flag in the wrangler.jsonc to nodejs_compat):

    import * as Sentry from '@sentry/cloudflare/nodejs_compat';
    
    export default Sentry.withSentry(() => ({
      integrations: [Sentry.prismaIntegration()],
    }), app);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions