Skip to content

How to extract more info from django request? #95

Description

@teeberg

The user data that's logged by default (with sending of PII enabled) looks something like

{'username': teeberg', 'ip_address': '127.0.0.1', 'email': teeberg@example.com'}

I'm trying to add some fields to this, but there doesn't seem to be an official documented way to do this.

Is there a cleaner way than monkey-patching sentry_sdk.integrations.django._set_user_info?

Maybe the request could be sent along as another hint to before_send handlers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions