mdlwrsentrygoa

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

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