Example #1
0
func ExampleMetaData() {
	notifier.Notify(errors.Errorf("hi world"),
		MetaData{"Account": {
			"id":      account.ID,
			"name":    account.Name,
			"paying?": account.Plan.Premium,
		}})
}
Example #2
0
func handler(w http.ResponseWriter, r *http.Request) {
	fmt.Fprint(w, "welcome")
	notifier := bugsnag.New(r)
	notifier.Notify(fmt.Errorf("oh hia"), bugsnag.MetaData{"env": {"values": os.Environ()}})
	fmt.Fprint(w, "welcome\n")

	panic("zoomg")

	fmt.Fprintf(w, "%#v", errors.Errorf("oahi").StackFrames())
}