Support Void (void.cloud) apps on Cloudflare

Đang mở
#26,502 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript, vite
Lĩnh vực
backend, observability

Hướng nghiên cứu

Start by reading the Cloudflare SDK setup paths named in the issue: the Vite plugin, automatic Durable Object instrumentation, manual withSentry and instrumentDurableObjectWithSentry, and @sentry/hono. Trace how Void generates its Worker entry and Durable Object classes, then determine which integration point can support those constraints. Done means a documented, working Sentry setup for Void apps that covers the reported Worker and Durable Object limitations.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Cloudflare Workers Feature Waiting for: Product Owner

Void generates the Worker entry and Durable Object classes at build time, so none of the @sentry/cloudflare setups work:

  • Vite plugin: turns itself off, because Void doesn't allow a root wrangler.jsonc. If you point the plugin at Void's generated .void-wrangler.jsonc, it wraps nothing and gives no warning, because that file has no main.
  • Durable Objects: Void exports them as export const X = ….class, a form the auto-instrument transform doesn't wrap.
  • Manual withSentry / instrumentDurableObjectWithSentry: there's nothing to wrap. The entry is regenerated on every build, and defineDurableState() creates the classes internally.
  • @sentry/hono: needs the Hono app instance, which Void middleware never receives.
Ngôn ngữ chính
TypeScript
Star
8.8k
Fork
1.9k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
744

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-javascript

Tất cả issue của getsentry/sentry-javascript

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.