We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 662657c + 8ec8dff commit 2b01d10Copy full SHA for 2b01d10
ddtrace/contrib/mysql/patch.py
@@ -33,7 +33,7 @@ def _connect(func, instance, args, kwargs):
33
34
def patch_conn(conn):
35
36
- tags = {t: getattr(conn, a, '') for t, a in CONN_ATTR_BY_TAG.items()}
+ tags = {t: getattr(conn, a) for t, a in CONN_ATTR_BY_TAG.items() if getattr(conn, a, '') != ''}
37
pin = Pin(service="mysql", app="mysql", app_type="db", tags=tags)
38
39
# grab the metadata from the conn
0 commit comments