sentryext

package
v2.0.0-...-1fe9aa2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(configs Configs, service, version string) error

Types

type Configs

type Configs struct {
	EnvName        envext.Name   `env:"ENV_NAME" envDefault:"LOCAL"`
	SentryEnvNames []envext.Name `env:"SENTRY_ENV_NAMES" envDefault:"DEVELOPMENT,STAGING,PRODUCTION"`
	SentryDSN      string        `env:"SENTRY_DSN,required"`
	SentryDebug    bool          `env:"SENTRY_DEBUG" envDefault:"false"`
	SentryStack    bool          `env:"SENTRY_STACK" envDefault:"true"`
	SentryTrace    bool          `env:"SENTRY_TRACE" envDefault:"true"`
	SentryRate     float64       `env:"SENTRY_RATE" envDefault:"1.0"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL