Django cache.add operations do not emit cache spans
@immanuwell がすでに取り組んでいます。
2026年5月26日 から。
評価
この issue はまだ評価されていません。
説明
Problem
DjangoIntegration(cache_spans=True) traces cache.set() and cache.get(), but cache.add() emits no cache span.
cache.add() is a normal Django cache write API, so this shows up in practice for apps that use add-on-miss / write-if-absent flows.
Repro
from django.core.cache import cache
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
sentry_sdk.init(
integrations=[DjangoIntegration(cache_spans=True)],
traces_sample_rate=1.0,
)
with sentry_sdk.start_transaction(name="t", op="test"):
cache.add("k", "value")
Actual: no cache.put span for cache.add().
Expected: cache.add() should be traced like the other cache write methods.
Notes
I verified locally that cache.set() emits a span while cache.add() does not, and a targeted fix is just to instrument add as a cache write.
- 主要言語
- Python
- スター
- 2.2k
- フォーク
- 672
- 平均マージ
- 23時間 14分
- マージ済み PR(30日)
- 218
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getsentry/sentry-python#7543 · コメント 2 件 · 担当者 1 名 ·
-
Python
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/sentry-python#6992 · コメント 1 件 ·
-
Improvement Python
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
getsentry/sentry-python#6970 · コメント 1 件 ·
-
Bug Python
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
getsentry/sentry-python#6504 · コメント 1 件 ·
-
Improvement Python Spans
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
getsentry/sentry-python#5833 · コメント 1 件 ·
getsentry/sentry-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main オープンarea: ci bug perceived difficulty: 3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-connect#1057 ·