Skip to content

version 2.0.0 error on database instrumentation #82

Open
@MatheusGeiger

Description

@MatheusGeiger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions