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

ref: Update sentryhttp example #283

Merged
merged 1 commit into from
Oct 16, 2020
Merged

ref: Update sentryhttp example #283

merged 1 commit into from
Oct 16, 2020

Conversation

rhcarvalho
Copy link
Contributor

  • Check sentry.Init error
  • Call sentry.Flush before server terminates
  • Name ResponseWriter parameters 'w', as per common practice
  • Remove WriteHeader line, as the net/http package does that for us
  • http.ListenAndServe always returns a non-nil error, so we call
    log.Fatal unconditionally

- Check sentry.Init error
- Call sentry.Flush before server terminates
- Name ResponseWriter parameters 'w', as per common practice
- Remove WriteHeader line, as the net/http package does that for us
- http.ListenAndServe always returns a non-nil error, so we call
log.Fatal unconditionally
@rhcarvalho rhcarvalho merged commit c9cb684 into master Oct 16, 2020
@rhcarvalho rhcarvalho deleted the sentryhttp-example branch October 16, 2020 15:52
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