getsentry / getsentry/sentry-javascript

Cloudflare Workers support relational database integrations

Open
#16,249 0 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.