Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHubFromContext ¶
GetHubFromContext retrieves attached *sentry.Hub instance from context.
func InitSentry ¶
func Server ¶
func Server(opts ...Option) middleware.Middleware
Server returns a new server middleware for Sentry.
Types ¶
type Option ¶
type Option func(*Options)
func WithRepanic ¶
func WithTimeout ¶
func WithWaitForDelivery ¶
type Options ¶
type Options struct { // Repanic configures whether Sentry should repanic after recovery, in most cases it should be set to true. Repanic bool // WaitForDelivery configures whether you want to block the request before moving forward with the response. WaitForDelivery bool // Timeout for the event delivery requests. Timeout time.Duration }
Click to show internal directories.
Click to hide internal directories.