8000 Instrument new database connections in Django · Issue #1249 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content
Instrument new database connections in Django #1249
Closed
@chdsbd

Description

@chdsbd

Sentry instruments calls to cursor.execute and cursor.executemany, but misses other database calls when Django opens a connection.

When Django opens a connection, it can make a few queries to configure timezones, auto commit settings and isolation settings.

I think we could instrument DatabaseWrapper.connect and maybe add more instrumentation to log the initial queries Django makes to initialize a connection.

https://github.com/django/django/blob/8d9827c06ce1592cca111e7eafb9ebe0153104ef/django/db/backends/base/base.py#L197-L200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0