getsentry / getsentry/sentry-javascript

Cloudflare Workers support relational database integrations

未关闭
#16,249 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Feature
主要语言
TypeScript
星标
8.7k
派生
1.8k
平均合并
1 天 17 小时
30 天内合并 PR
515

描述

### Problem Statement

Cloudflare Workers support talking to various databases using [Cloudflare Hyperdrive](https://developers.cloudflare.com/hyperdrive/) for example.

Currently only postgres and mysql are supported with the following drivers:

- https://developers.cloudflare.com/hyperdrive/examples/connect-to-postgres/#supported-drivers
- https://developers.cloudflare.com/hyperdrive/examples/connect-to-mysql/#supported-drivers

Most of these drivers already have integrations via the Node.js package.

### Solution Brainstorm

Allow the various (relevant) Node.js database integrations to be available in Cloudflare workers.

As it looks `mysql`, `mysql2` and `pg` is supported in the Node.js SDK (https://docs.sentry.io/platforms/javascript/guides/node/tracing/instrumentation/automatic-instrumentation/), they should (?) also work in a workers environment and with Hyperdrive make sense.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。