Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions surveillance/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func (wrapper *Sentry) Capture(err error, _panic bool) {

// Setting the stacktrace of the error as an extra along with any other extras set in the error
if extras := errors.Extras(err); extras != nil{
if abortLog, ok := extras["custom_service"]; ok && abortLog.(bool) {
return
}
scope.SetExtras(extras)
scope.SetExtra("stacktrace", errors.Stacktrace(err))
} else {
Expand Down