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 於 3 天前認領。 未關閉
難度 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
-
難度 1/5 1 小時以內 新手友好度 85/100
formbricks/formbricks#9918 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 65/100
thecodacus/pithagoras#364 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 72/100
openclimatefix/quartz-frontend#823 ·
維護者通常 4 天內回覆
-
area:agent-manager community needs-triage
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
`contacts.create` posts to `/audiences/undefined/contacts` when `audienceId` is undefined可能已有人在做 @RaphaelFakhri 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 70/100
resend/resend-node#1176 ·
維護者通常 1 天內回覆