Categorygithub.com/digitalmint/go-sentry-middleware
modulepackage
0.6.0
Repository: https://github.com/digitalmint/go-sentry-middleware.git
Documentation: pkg.go.dev

# README

Go Sentry Middleware tools

500 middlewares

Send a 500 response to Sentry.

  • gin Middleware (gin folder) MiddlewareSentry500, MiddlewareSentry500Opts
  • goa Middleware (goa folder) MiddlewareSentry500

Log sentry events that are not sent

Sentry does not provide a way to log information about what is not sent. This repo implements an http.RoundTripper that can recover and log the sentry.Event that failed to send. This is implemented in sentry.go as LogSentrySendFailures.RoundTrip

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
NormalizeUrlPathForSentry takes a url path string and replaces any path part that contains a number with a standard placeholder value.
No description provided by the author
Golang error types tend to be generic wrappers Unwrap known generic error types until we find an unrecognized error type That error type is assumed to be useful Otherwise just strip the "*errors." or "errors." prefix which adds noise.
group on the url and the beginning of the body.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author