Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add setUser #56

Closed
dcramer opened this Issue · 3 comments

2 participants

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

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

This would fill in sentry.interfaces.User

@mattrobenolt

What's the interface look like for this?

@dcramer
Owner

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

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

@mattrobenolt mattrobenolt referenced this issue from a commit
@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.