Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultFlushDuration = time.Second * 2
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Enabled bool `default:"false"` DSN string `env:"DSN" yaml:"dsn" usage:"The DSN to use. If the DSN is not set, the client is effectively disabled."` Environment string `usage:"The environment to be sent with events."` TracesSampleRate float64 `yaml:"traces_sample_rate" default:"1"` AttachStacktrace bool `yaml:"attach_stacktrace" default:"true"` // contains filtered or unexported fields }
type Option ¶
type Option func(*Config)
func WithAppVersion ¶
func WithSentryConfig ¶
func WithSentryConfig(v sentry.ClientOptions) Option
Click to show internal directories.
Click to hide internal directories.