Skip to content

How to SetUserContext in a request? #83

@montanaflynn

Description

@montanaflynn

I'm using the hook but don't know how to add the special user keys inside a request. I found https://godoc.org/github.com/evalphobia/logrus_sentry#SentryHook.SetUserContext but I create the hook and add it to my logger before the API starts. I want to change the user context on a per request basis.

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