Skip to content

Commit 8b2d7bc

Browse files
committed
stringify all the things
1 parent aabec99 commit 8b2d7bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/tracing_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ def record_sql_queries(
133133

134134
data = {}
135135
if params_list is not None:
136-
data["db.params"] = params_list
136+
data["db.params"] = str(params_list)
137137
if paramstyle is not None:
138-
data["db.paramstyle"] = paramstyle
138+
data["db.paramstyle"] = str(paramstyle)
139139
if executemany:
140140
data["db.executemany"] = True
141141
if record_cursor_repr and cursor is not None:
142-
data["db.cursor"] = cursor
142+
data["db.cursor"] = str(cursor)
143143

144144
with capture_internal_exceptions():
145145
sentry_sdk.add_breadcrumb(message=query, category="query", data=data)

0 commit comments

Comments
 (0)