Skip to content
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

add optional callback and emit 'done' when finish posting to sentry #37

Merged
merged 1 commit into from
Jun 22, 2016

Conversation

jiancheung
Copy link
Contributor

Currently, there is no good way to know if sentry.error or sentry.message has actually finish the POST request to sentry.
This PR adds an optional callback and makes it emit 'done' to know when it has finish POSTing to sentry.

@Christopher-Bradshaw
Copy link
Contributor

Is it a problem that we are sending back multiple events (done and then error) in some cases?

I don't think so because they need different handlers, but just checking.

LGTM

@jiancheung jiancheung merged commit 0ccfde4 into master Jun 22, 2016
@jiancheung jiancheung deleted the add-cb-to-error-method branch June 22, 2016 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants