Skip to content

Psycopg2 does not wrap custom cursors #154

@alexmac

Description

@alexmac

The patches in "ddtrace/contrib/psycopg/connection.py" provide a new default cursor that performs APM tracing, but In my code I've been using the "psycopg2.extras.DictCursor" so no tracing is performed as the patch only replaces the default, it does not wrap the provided cursor.

Any ideas on how this should be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions