File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ type BugSnagConfig struct {
8
8
Environment string
9
9
APIKey string `envconfig:"api_key" json:"api_key" yaml:"api_key"`
10
10
ProjectPackage string `envconfig:"project_package" json:"project_package" yaml:"project_package"`
11
+ NodeName string `envconfig:"node_name" json:"node_name" yaml:"node_name"` // If left unset, bugsnag will default to the value returned by os.Hostname
11
12
}
12
13
13
14
func SetupBugSnag (config * BugSnagConfig , version string ) error {
@@ -24,6 +25,7 @@ func SetupBugSnag(config *BugSnagConfig, version string) error {
24
25
bugsnag .Configure (bugsnag.Configuration {
25
26
APIKey : config .APIKey ,
26
27
ReleaseStage : config .Environment ,
28
+ Hostname : config .NodeName ,
27
29
AppVersion : version ,
28
30
ProjectPackages : projectPackages ,
29
31
PanicHandler : func () {}, // this is to disable panic handling. The lib was forking and restarting the process (causing races)
You can’t perform that action at this time.
0 commit comments