Documentation
¶
Index ¶
- func BugsnagMiddleware(router http.Handler, config BugsnagConfig) http.Handler
- func GetNewRelicApp(config NewrelicConfig) (newrelic.Application, error)
- func NewRelicMiddleware(handler httprouter.Handle, path string, config NewrelicConfig) httprouter.Handle
- type BugsnagConfig
- type MiddlewareConfig
- type NewrelicConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BugsnagMiddleware ¶
func BugsnagMiddleware(router http.Handler, config BugsnagConfig) http.Handler
BugsnagMiddleware configures and wraps bugsnag handler around the router
func GetNewRelicApp ¶
func GetNewRelicApp(config NewrelicConfig) (newrelic.Application, error)
GetNewRelicApp creates and returns new relic app
func NewRelicMiddleware ¶
func NewRelicMiddleware(handler httprouter.Handle, path string, config NewrelicConfig) httprouter.Handle
NewRelicMiddleware creates newrelic app and starts transaction
Types ¶
type BugsnagConfig ¶
type BugsnagConfig struct {
APIKey string
ReleaseStage string
AppType string
AppVersion string
ProjectPackages []string
NotifyReleaseStages []string
ParamsFilters []string
PanicHandler func()
}
BugsnagConfig bugsnag config
type MiddlewareConfig ¶
type MiddlewareConfig struct {
Bugsnag BugsnagConfig
Newrelic NewrelicConfig
}
MiddlewareConfig middleware config
type NewrelicConfig ¶
NewrelicConfig newrelic config