Skip to content

Loading…

Add setUser #56

Closed
dcramer opened this Issue · 3 comments

2 participants

@dcramer
Sentry member
// Set the user data
Raven.setUser({
  email: 'dcramer@example.com'
});

// Clear the user data
Raven.setUser();

This would fill in sentry.interfaces.User

@mattrobenolt
Sentry member

What's the interface look like for this?

@dcramer
Sentry member

It's arbitrary information, but we should document examples sending an email address:

http://sentry.readthedocs.org/en/latest/developer/interfaces/index.html#sentry.interfaces.User

@mattrobenolt
Sentry member

Added with cc0a471. GitHub didn't like my rebased commit message.

@mattrobenolt mattrobenolt added a commit that referenced this issue
@mattrobenolt mattrobenolt setUser, fixes #56
All methods also return a reference to Raven so they can be chained.
cc0a471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.