Adds current user information to notifier.js #524

Merged
merged 1 commit into from Jul 29, 2013

Projects

None yet

2 participants

@roryf
Contributor
roryf commented Jul 25, 2013

This adds the current-user part of the Airbrake notification API v2.4.

To configure, add this to your Airbrake configuration:

Airbrake.setCurrentUser({
  id: '1',
  name: 'some one',
  email: 'user@example.org'
});

An alternative would be to look for a current_user variable on the global window object, but this seemed more in keeping with the rest of the config implementation.

@roryf roryf referenced this pull request in airbrake/airbrake-js Jul 26, 2013
Closed

Custom parameters? #22

@shingara
Member

Thanks :)

@shingara shingara merged commit 1a5ac73 into errbit:master Jul 29, 2013

1 check failed

default The Travis CI build could not complete due to an error
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment