airbrake

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ListenerAirbrake is the airbrake listener name.
	ListenerAirbrake = "airbrake"
)

Variables

This section is empty.

Functions

func AddListeners

func AddListeners(log *logger.Logger, cfg *Config)

AddListeners adds airbrake listeners.

func NewNotice

func NewNotice(reporter *gobrake.Notifier, ee *logger.ErrorEvent) *gobrake.Notice

NewNotice returns a new gobrake notice.

Types

type Config

type Config struct {
	ProjectID   string `json:"projectID" yaml:"projectID" env:"AIRBRAKE_PROJECT_ID"`
	ProjectKey  string `json:"projectKey" yaml:"projectKey" env:"AIRBRAKE_PROJECT_KEY"`
	Environment string `json:"environment" yaml:"environment" env:"SERVICE_ENV"`
}

Config is the airbrake config.

func (Config) IsZero

func (c Config) IsZero() bool

IsZero returns if the config is set or not.

Jump to

Keyboard shortcuts

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