This pr adds raven.Recoverer to complement raven.RecoveryHandler. The main difference is that raven.Recoverer takes an http.Handler and returns an http.Handler. This is a small difference, but it means that in frameworks such as Chi, one can use raven as middleware:
r := chu.NewRouter()
r.Use(raven.Recoverer)
...
The original raven.RecoveryHandler remain unchanged
This pr adds
raven.Recoverer
to complementraven.RecoveryHandler
. The main difference is thatraven.Recoverer
takes anhttp.Handler
and returns anhttp.Handler
. This is a small difference, but it means that in frameworks such as Chi, one can use raven as middleware:The original
raven.RecoveryHandler
remain unchangedFixes #182