Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSentry ¶
func InitSentry(config *ConfigOptions) error
This is not a usual init as the user may need to change options before hand
Example ¶
if err := InitSentry(&ConfigOptions{
Dsn: "",
Debug: true,
AttachStacktrace: true,
}); err != nil {
return
}
defer Flush(5 * time.Second)
// Logger = []LoggerInterface{&test.Logger{}, &sentry.Logger{}}
func NewConfig ¶
func NewConfig() *sentry.ClientOptions
Types ¶
type ConfigOptions ¶
type ConfigOptions sentry.ClientOptions
Passthrough type for https://pkg.go.dev/github.com/getsentry/sentry-go#ClientOptions
Click to show internal directories.
Click to hide internal directories.