Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureException ¶
func CaptureException(err error)
Types ¶
type ConfigOpts ¶
type ConfigOpts struct {
Enabled bool `json:"enabled" yaml:"enabled"`
DSN string `json:"dsn" yaml:"dsn"`
Debug bool `json:"debug" yaml:"debug"`
Tags map[string]string `json:"tags" yaml:"tags"`
}
ConfigOpts all map to environment variables. For example:
- SENTRY_ENABLED=true -> ConfigOpts.Enabled=true
var Config *ConfigOpts
Config Global Singleton that can be accessed from anywhere in the app. This is required because panic recovery can happen anywhere in the app.
func InitSentryConfig ¶
func InitSentryConfig() (*ConfigOpts, error)
InitSentryConfig from environment. Errors if called more than once.
Click to show internal directories.
Click to hide internal directories.