Skip to content

Commit

Permalink
Document reason for config fields
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 27, 2020
1 parent ccc83c3 commit 32df9ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v3/newrelic/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,11 @@ func gatherMetadata(env []string) map[string]string {
// config exists to avoid adding private fields to Config.
type config struct {
Config
// These fields based on environment variables are located here, rather
// than in appRun, to ensure that they are calculated during
// NewApplication (instead of at each connect) because some customers
// may unset environment variables after startup:
// https://github.com/newrelic/go-agent/issues/127
metadata map[string]string
hostname string
}
Expand Down

0 comments on commit 32df9ea

Please sign in to comment.