getsentry / getsentry/sentry-javascript

Deno's export surface is narrower than Cloudflare's

Đang mở Phù hợp với người mới
#23,896 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Deno 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)
515

Mô tả

Cloudflare runs on workerd with no Node APIs, and still exports more than Deno. Missing from `packages/deno/src/index.ts` but present in `packages/cloudflare/src/index.ts`:

| Missing from Deno | Comes from |
| -- | -- |
| `instrumentOpenAiClient`, `instrumentAnthropicAiClient`, `instrumentGoogleGenAIClient`, `instrumentLangChainEmbeddings`, `instrumentStateGraph`, `createLangChainCallbackHandler`, `instrumentCreateReactAgent` | `@sentry/server-utils` (already a dependency) |
| `prismaIntegration` | `@sentry/server-utils` |
| `trpcMiddleware`, `addIntegration`, `withActiveSpan`, `getSpanDescendants`, `setConversationId`, `parameterize`, `consoleIntegration`, `createConsolaReporter`, `growthbookIntegration`, `updateSpanName` | `@sentry/core` |
| `spotlightIntegration`, `httpServerIntegration` | needs a decision, may not apply |
| `initWithoutDefaultIntegrations`, `getDefaultIntegrationsWithoutPerformance` | Node and Bun both have these |

The manual AI-client helpers matter most. They are the documented fallback for when channel injection is unavailable, which per D2 is Deno's default state.

**Work item.** Add the `@sentry/core` and `@sentry/server-utils` re-exports. They are pure re-exports with no new code. Add `initWithoutDefaultIntegrations` to `deno/src/sdk.ts`.

**Prior art ***(related history only)*. No issue. Related history: [#22306]() (closed) covered pulling the integrations themselves into Deno, and the `feat(deno): add * integration` series (#22448 through #22472, all merged) added them one by one. The manual `instrument*Client` helpers were never part of that sweep.

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

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

Hướng nghiên cứu

Compare packages/deno/src/index.ts with packages/cloudflare/src/index.ts and inspect deno/src/sdk.ts first. Done means the requested @sentry/core and @sentry/server-utils re-exports are present and initWithoutDefaultIntegrations is exposed from the Deno SDK; spotlightIntegration and httpServerIntegration remain undecided.

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

Đánh giá

Công nghệ
deno, typescript
Lĩnh vực
backend
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
84/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.