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.
Click to show internal directories.
Click to hide internal directories.