-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improve user telemetry #3972
Conversation
makeavish
commented
Nov 15, 2023
- move GetEmailFromJwt to common function
- update AttachJwtToContext() to use standard way of attaching value to context
- update userEmail in every possible sendEvent call
- send groupId in sendEvent call for SaaS operator analytics
- move GetEmailFromJwt to common function - update AttachJwtToContext() to use standard way of attaching value to context - update userEmail in every possible sendEvent call - send groupId in sendEvent call for SaaS operator analytics
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user object is already attached to every request context. You can use common.GetUserFromContext(ctx)
. There is no need to call auth.AttachJwtToContext
under every route that you need email.