Skip to content

Add new SetUserContextMiddleware #567

Closed
@khalyomede

Description

@khalyomede

Currently, when we enabled "send_default_pii" after the install, the issue have the user id and ip. I propose to add a new optional to use "SetUserContextMiddleware" which will automatically get the authenticated user

  • id
  • email
  • name
  • ip

This will help to fill the maximum of available option for the User context.

In my optinion this middleware should be opt-in (not enabled by default), with some indication where to put the middleware.

I can create a PR for this if you are interested (I've made it for my app, it works fine so far).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions