getsentry / getsentry/sentry-python

Distinguish async vs sync database drivers in Python DB spans (FastAPI / SQLAlchemy / asyncpg)

オープン
#5,463 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
Feature Python Spans
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

### Problem Statement

In Sentry Performance for Python async applications (FastAPI + SQLAlchemy async), all database spans appear generically as:

op: db
description: SELECT ...

There is currently no visible way in the UI or span attributes to determine whether the underlying database driver is:

async (e.g., asyncpg, SQLAlchemy asyncio), or

sync (e.g., psycopg2, synchronous SQLAlchemy)

This makes it difficult to verify that async applications are using non-blocking database drivers and not accidentally introducing sync DB calls inside async endpoints.

### Solution Brainstorm

_No response_

### Product Area

Insights

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

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

評価

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

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

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