getsentry / getsentry/sentry-javascript

Add more information on DO spans

オープン
#22,729 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Cloudflare Workers Feature Traces
主要言語
TypeScript
スター
8.7k
フォーク
1.8k
平均マージ
1日 17時間
マージ済み PR(30日)
515

説明

Currently Cloudflare DurableObject spans for get/put/etc. are not showing the exact information of who called it with which information. It'd be good to have more information than just a plain DO call that has been triggered:

**Current (based on some e2e tests):**

```
{
data: {
'db.operation.name': 'put',
'db.system.name': 'cloudflare.durable_object.storage',
'sentry.op': 'db',
'sentry.origin': 'auto.db.cloudflare.durable_object',
},
description: 'durable_object_storage_put',
op: 'db',
origin: 'auto.db.cloudflare.durable_object',
},
```

**Expected:**

Either in the `db.` attributes or in the description some information on e.g. function names.

---

Improve tests where this could potentially land: https://github.com/getsentry/sentry-javascript/blob/c6d754b9fff3033512e6e8f59eaf8999ffce46b6/dev-packages/e2e-tests/test-applications/cloudflare-agent/tests/callable.test.ts#L80-L128 (ref: https://github.com/getsentry/sentry-javascript/pull/22710#discussion_r3664623538)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with dev-packages/e2e-tests/test-applications/cloudflare-agent/tests/callable.test.ts around lines 80-128 and review the existing Durable Object span assertions. Determine which caller and input information should be represented in the span attributes or description, then update the tests so completion is demonstrated by assertions for that information.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
observability
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。