getsentry / getsentry/sentry-javascript

Cloudflare events have no runtime version and no server name

Đang mở
#24,040 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Cloudflare Workers Improvement javascript
Ngôn ngữ chính
TypeScript
Star
8.7k
Fork
1.8k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
523

Mô tả

`packages/cloudflare/src/client.ts:55`:

```ts
// TODO: Grab version information
runtime: { name: 'cloudflare' },
// TODO: Add server name
```

Bun reports `{name:'bun', version:'1.3.14'}` and Deno reports the Deno version. Cloudflare reports neither a version nor a `server_name`, so events cannot be grouped or filtered by worker.

**Work item.** Set `server_name` from the script name where it is available (`env` binding metadata or the wrangler-injected name). For the version, either use the compatibility date if reachable at runtime or delete the TODO with a note saying workerd exposes nothing usable.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start at packages/cloudflare/src/client.ts:55 and review the existing runtime metadata alongside the Bun and Deno behavior mentioned in the issue. Trace which script-name metadata is available through env binding metadata or the wrangler-injected name, and determine whether the compatibility date is reachable at runtime. Done means Cloudflare events report server_name when available and either a usable version or a note explaining why workerd cannot provide one.

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

Đánh giá

Công nghệ
typescript
Lĩnh vực
cloud, observability
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
70/100

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.