mdlwrsentrygoa

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MiddlewareSentry500

func MiddlewareSentry500(opts Sentry500Options) func(http.Handler) http.Handler

MiddlewareSentry500 is a Goa middleware that captures the response status code and sends to Sentry if code=500.

Types

type Sentry500Options

type Sentry500Options struct {
	ExtractContext    func(context.Context, *sentry.Scope)
	NoLogResponseBody bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL