sentrycontext

package
v1.121.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSentryContext

func NewSentryContext() middleware.Middleware

NewSentryContext returns a middleware that adds context to Sentry for the current request that will be sent along with the error if one occurs. It sets the scope of the request hub that NewSentryHub added, and adds that hub if it is missing.

func NewSentryHub added in v1.121.0

func NewSentryHub() middleware.Middleware

NewSentryHub returns a middleware that gives each request its own Sentry hub on its context, so concurrent requests do not share a scope. Put it before any middleware that reports to Sentry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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