getsentry / getsentry/sentry-python

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

Abierto
#5,463 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Feature Python Spans
Lenguaje dominante
Python
Estrellas
2.2k
Forks
669
Merge medio
1 d 40 min
PR fusionados (30 d)
212

Descripción

### 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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.