Skip to content

Commit 35b7015

Browse files
committed
add more attrs
1 parent fe3cdda commit 35b7015

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sentry_sdk/integrations/clickhouse_driver.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,15 @@ def _inner_end(*args: P.args, **kwargs: P.kwargs) -> T:
120120
with capture_internal_exceptions():
121121
query = span._get_attribute("db.query.text")
122122
data = {}
123-
for attr in ("db.query_id", "db.params", "db.result"):
123+
for attr in (
124+
"db.query_id",
125+
"db.params",
126+
"db.result",
127+
"db.system",
128+
"db.user",
129+
"server.address",
130+
"server.port",
131+
):
124132
if span._get_attribute(attr):
125133
data[attr] = span._get_attribute(attr)
126134

0 commit comments

Comments
 (0)