Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Technique for adding the current user #11

@kkinder

Description

@kkinder

sentry-asgi does not seem to have a way of setting the current user. Regular sentry seems to recommend this:

from sentry_sdk import configure_scope

with configure_scope() as scope:
    scope.user = {"email": "john.doe@example.com"}

But that seems to run immediately with sentry-asgi, so I'm not sure how to add the currently authenticated user. Recommendations?

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