Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AdditionalSentryTags = env.GetEnvOrDefault("ADDITIONAL_SENTRY_TAGS", "{}")
View Source
var SampleRate = env.GetEnvAsFloatOrDefault("SENTRY_SAMPLE_RATE", "1.0")
View Source
var SentryDebug = env.GetEnvAsBoolOrDefault("SENTRY_DEBUG", "false")
View Source
var SentryDsn = env.GetEnvOrDefault("SENTRY_DSN", "")
View Source
var SentryEnabled = env.GetEnvAsBoolOrDefault("SENTRY_ENABLED", "false")
View Source
var TracesSampleRate = env.GetEnvAsFloatOrDefault("SENTRY_TRACES_SAMPLE_RATE", "1.0")
Functions ¶
func MaybeInitSentry ¶
func MaybeInitSentry(options sentry.ClientOptions, hook *SentryLogrusHook)
Types ¶
type SentryLogrusHook ¶
type SentryLogrusHook struct {
// contains filtered or unexported fields
}
func NewDefaultSentryLogrusHook ¶
func NewDefaultSentryLogrusHook() *SentryLogrusHook
func NewSentryLogrusHook ¶
func NewSentryLogrusHook(levels []logrus.Level) *SentryLogrusHook
func (*SentryLogrusHook) Levels ¶
func (s *SentryLogrusHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.