getsentry / getsentry/sentry-javascript

Cloudflare Request and response attribute asymmetry against Deno

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

描述

`wrapRequestHandlerWithInit` does not do two things `wrapDenoRequestHandler` does:

* set response headers as span attributes via `httpHeadersToSpanAttributes(..., 'response')`
* set `isolationScope.setContext('response', { status_code })`

**Work item.** Decide which behavior is correct and make the two match. If Cloudflare deliberately skips response headers for payload-size reasons, say so in a comment.

贡献指南

打开贡献指南

调研方向

Start by locating wrapRequestHandlerWithInit and wrapDenoRequestHandler, then compare their response handling, including httpHeadersToSpanAttributes and isolationScope.setContext. Decide which behavior should be shared; done means both handlers match, with a comment if Cloudflare intentionally omits response headers for payload-size reasons.

由索引模型根据 Issue 内容生成。

评估

技术栈
deno, typescript
领域
observability
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 发到你的邮箱

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