getsentry / getsentry/sentry-javascript

Ensure `http` on Cloudflare Workers is supported

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

描述

Since very recently, Cloudflare Workers support `node:http` module, and through that many node frameworks (e.g. Express etc).

We should verify that this works with our Cloudflare SDK:

## Basic `node:http` support

* Outgoing http requests work:
* Trace propagation & breadcrumbs works
* `http.client` spans work
* Basic node server works
* Request isolation works
* Request metadata works
* `http.server` work (without parametrized routes)

## Node-based framework support

Additionally, we should also make sure that all frameworks that we support also work on Cloudflare:

* Express
* Fastify
* Koa
* Connect
* Hapi

All of these should be verified/adjusted so that:

* Error handlers work/are exported for Cloudflare
* Ideally parametrized routes work (TBD - we need to see if this is possible somhow…)

## Docs

Finally we need to make sure that this is reflected in docs.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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