Documentation ¶
Index ¶
- Constants
- func Close()
- func GetTraceId(ctx context.Context) string
- func InitAirbrake(projectID int64, projectKey string)
- func InitBugsnag(config bugsnag.Configuration)
- func InitRollbar(token, env string)
- func InitSentry(dsn string)
- func Notify(err error, rawData ...interface{}) error
- func NotifyOnPanic(rawData ...interface{})
- func NotifyWithExclude(err error, rawData ...interface{}) error
- func NotifyWithLevel(err error, level string, rawData ...interface{}) error
- func NotifyWithLevelAndSkip(err error, skip int, level string, rawData ...interface{}) error
- func SetEnvironemnt(env string)
- func SetHostname(name string)
- func SetServerRoot(path string)
- func SetTraceId(ctx context.Context) context.Context
- func UpdateTraceId(ctx context.Context, traceID string) context.Context
- type Tags
Constants ¶
View Source
const ( ErrorLevel = "error" DebugLevel = "debug" InfoLevel = "info" WarningLevel = "warning" FatalLevel = "fatal" )
Variables ¶
This section is empty.
Functions ¶
func GetTraceId ¶
GetTraceId fetches traceID from context
func InitAirbrake ¶
InitAirbrake inits airbrake configuration
func InitBugsnag ¶
func InitBugsnag(config bugsnag.Configuration)
InitBugsnag inits bugsnag configuration
func InitSentry ¶
func InitSentry(dsn string)
func NotifyOnPanic ¶
func NotifyOnPanic(rawData ...interface{})
func NotifyWithExclude ¶
func NotifyWithLevel ¶
func NotifyWithLevelAndSkip ¶
func SetEnvironemnt ¶
func SetEnvironemnt(env string)
func SetHostname ¶
func SetHostname(name string)
func SetServerRoot ¶
func SetServerRoot(path string)
func SetTraceId ¶
SetTraceId updates the traceID based on context values
Types ¶
Click to show internal directories.
Click to hide internal directories.