|
|
|
|
|
by nodesocket
214 days ago
|
|
Would love to see it added. I’m running a Flask app using raw SQLite3 without a ORM. I believe I could hack up a Span solution in Sentry to query track like: import sqlite3
from sentry_sdk import start_span
def execute_query(conn: sqlite3.Connection, sql: str, params: tuple = ()):
with start_span(op="db", description=sql) as span:
span.set_data("db.system", "sqlite")
cursor = conn.execute(sql, params)
return cursor
|
|