Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nconf/bugsnag.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type BugSnagConfig struct {
Environment string
APIKey string `envconfig:"api_key" json:"api_key" yaml:"api_key"`
ProjectPackage string `envconfig:"project_package" json:"project_package" yaml:"project_package"`
HostNodeName string `envconfig:"node_name" json:"node_name" yaml:"node_name"`
}

func SetupBugSnag(config *BugSnagConfig, version string) error {
Expand All @@ -24,6 +25,7 @@ func SetupBugSnag(config *BugSnagConfig, version string) error {
bugsnag.Configure(bugsnag.Configuration{
APIKey: config.APIKey,
ReleaseStage: config.Environment,
Hostname: config.HostNodeName,
AppVersion: version,
ProjectPackages: projectPackages,
PanicHandler: func() {}, // this is to disable panic handling. The lib was forking and restarting the process (causing races)
Expand Down