getsentry / getsentry/sentry-python

Verify spans are available for SQL transactions (converted to project)

オープン
#4,320 コメント 3 件 リアクション 0 件 担当者 1 名 @alexander-alderman-webb が担当を希望しています GitHub で見る
Integration: Django Integration: SQLAlchemy Python Spans Task
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

This issue has been converted to a project [Verify spans are available for SQL transactions [Python]](https://linear.app/getsentry/project/verify-spans-are-available-for-sql-transactions-python-5cc54648fd4a)

---

In [HTTP Requests within SQL Transactions](https://linear.app/getsentry/project/sql-issue-detection-f94b4c4af773/overview#milestone-343cae13-49fe-4c07-95d6-cc28aefef58f) we would like to detect when HTTP client requests are being made during a SQL transaction however to do this correctly, we need to verify that we have spans available from each backend SDK for database transactions. Some SDKs are known to not send this information (ex: Django) so we'd like to audit where it is/isn't available and get it added where it's not available.

These are generally `BEGIN`, `COMMIT`, and `ROLLBACK` however if we are doing any special casing in SDKs there are nuances depending on the SQL dialect (ex: MySQL supports `START TRANSACTION` in addition to `BEGIN`). The linked milestone above has more details in the FAQ section.

[Verify spans are available for SQL transactions](https://develop.sentry.dev/sdk/telemetry/spans/sql-transactions/)

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

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

評価

この issue はまだ評価されていません。

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

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