Documentation ¶
Index ¶
- Variables
- func CaptureException(hub *sentry.Hub, err error)
- func NotifyError(err error, contexts map[string]sentry.Context)
- func NotifyErrorOnce(err error, contexts map[string]sentry.Context)
- func NotifyIfPanic()
- func SentryMiddleware(handler http.Handler) http.Handler
- func Setup(dsn string, release, environment, name string, opts ...Option)
- type ClientOptions
- type Context
- type Hasher
- type Option
- type Scope
- type Typeable
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CurrentHub = sentry.CurrentHub ConfigureScope = sentry.ConfigureScope )
Exported functions from sentry's original package to avoid importing it
Functions ¶
func CaptureException ¶
func CaptureException(hub *sentry.Hub, err error)
func NotifyError ¶ added in v0.0.4
NotifyError to sentry
func NotifyErrorOnce ¶ added in v0.0.4
NotifyErrorOnce will send an error if it has never occurred in this current process
func NotifyIfPanic ¶
func NotifyIfPanic()
NotifyIfPanic recovers from the panic and sends the error to Sentry, panicking shortly thereafter
Types ¶
type ClientOptions ¶ added in v0.1.1
type ClientOptions = sentry.ClientOptions
type Hasher ¶ added in v0.1.3
type Hasher interface {
Hash() string
}
Hasher transforms the object into an unique hash string
type Option ¶
type Option func(*sentry.Hub)
func WithClientOptions ¶ added in v0.1.1
func WithClientOptions(opts ClientOptions) Option
func WithTransport ¶ added in v0.1.1
func WithTransport(transport sentry.Transport) Option
Click to show internal directories.
Click to hide internal directories.