bugsnag / bugsnag-go

Automatic panic monitoring for Go and Go web frameworks, like negroni, gin, and revel
https://docs.bugsnag.com/platforms/go
MIT License
204 stars 69 forks source link

Add breadcrumb support #234

Open JamesLindsay0 opened 2 months ago

JamesLindsay0 commented 2 months ago

Goal

Closes #191

Design

This is in line with the breadcrumb spec except that there is no removeOnBreadcrumb function. This is because it is impossible to compare the callbacks in go.

Automatic breadcrumbs for the bugsnag loading and sending errors have been added. Other automatic breadcrumb types can be added later.

Changeset

New functions for LeaveBreadcrumb and OnBreadcrumb.

Testing

Automated tests were added with the http server and to maze runner. I also did some manual testing.