Only create Cloudflare storage and D1 db spans when there is a parent span
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- backend
调研方向
阅读提到的五个 instrumentation 文件,并找到其中对 startSpan 的调用。在这些调用中添加 onlyIfParent: true,然后检查现有的 Cloudflare instrumentation 测试,并添加一个测试,表明没有活动 span 的操作不会创建 span。五个 instrumentation 都在没有父 span 时跳过创建 span,且测试通过后,即为完成。
由索引模型根据 Issue 内容生成。
描述
The Cloudflare D1, KV, Durable Object storage and SqlStorage instrumentations create db spans when there is no active span. Each of these spans becomes its own root span and has no context.
Pass onlyIfParent: true to the startSpan calls in:
packages/cloudflare/src/instrumentations/worker/instrumentD1.tspackages/cloudflare/src/instrumentations/worker/instrumentKV.tspackages/cloudflare/src/instrumentations/instrumentDurableObjectStorage.tspackages/cloudflare/src/instrumentations/instrumentDurableObjectSyncKvStorage.tspackages/cloudflare/src/instrumentations/instrumentSqlStorage.ts
Add a test that checks that an operation without an active span creates no span.
- 主要语言
- TypeScript
- 星标
- 8.8k
- 派生
- 1.9k
- 平均合并
- 1 天 21 小时
- 30 天内合并 PR
- 617
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-javascript 的其他 Issue
-
Bug Node.js
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-javascript#25950 · 2 条评论 ·
维护者通常 1 天内回复
-
Browser Bug
难度 2/5 1-3 小时 新手友好度 85/100
getsentry/sentry-javascript#25946 · 2 条评论 ·
维护者通常 1 天内回复
-
normalize() throws when a getter throws a Symbol or a null-prototype object可能已有人在做 @rjmcgee53192 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-javascript#25920 · 2 条评论 ·
维护者通常 1 天内回复
-
Only create Nuxt database and storage spans when there is a parent span可能已有人在做 @nicohrubec 于 5 天前认领。 未关闭Improvement Nuxt
难度 2/5 1-3 小时 新手友好度 83/100
getsentry/sentry-javascript#25805 · 2 条评论 ·
维护者通常 1 天内回复
-
Only create aws-sdk DynamoDB db spans when there is a parent span可能已有人在做 @nicohrubec 于 5 天前认领。 未关闭Bug javascript
难度 2/5 1-3 小时 新手友好度 76/100
getsentry/sentry-javascript#25801 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 getsentry/sentry-javascript 的全部 Issue
相似的 Issue
-
area: frontend priority: normal
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
formbricks/formbricks#9918 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
thecodacus/pithagoras#364 ·
维护者通常 1 天内回复
-
TestAutonomousStop_ReportsObservedState fails under host load: 1s wall-clock ceiling vs 250ms cycle未关闭type:bug
难度 2/5 1-3 小时 新手友好度 65/100
nightgauge/nightgauge#2909 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复