Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 2.0.0 error on database instrumentation #82

Open
MatheusGeiger opened this issue Jul 12, 2023 · 0 comments
Open

version 2.0.0 error on database instrumentation #82

MatheusGeiger opened this issue Jul 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@MatheusGeiger
Copy link
Contributor

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:

  • run the test project with this version installed (cd dynatrace-instrumentation && docker compose up app)
  • You can see in console logs the error Error instrument database: AssertionError

Stack:

  • python - 3.11
  • django - 4.1.9
  • psycopg2 - 2.9.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant