dynatrace-oss / OneAgent-SDK-Python-AutoInstrumentation

autodynatrace, a python library that implements automatic instrumentation using the OneAgent SDK for Python
Other
62 stars 28 forks source link

version 2.0.0 error on database instrumentation #82

Open MatheusGeiger opened 1 year ago

MatheusGeiger commented 1 year ago

After updating autodynatrace to version 2.0.0 the database instrumentations is not working, one AssertionError() was launched from sdk.trace_sql_database_request oneagent.

db_api try except

Screenshot 2023-07-12 at 10 32 42

trace_sql_database_request from oneagent

Screenshot 2023-07-12 at 10 33 21

Assert error from oneagent.sdk

Screenshot 2023-07-12 at 10 23 14

I think this issue can fix changing the self.db_info = f"{db_info}" to self.db_info = db_info changed in this PR

How to reproduce:

Stack: