Skip to content

Commit

Permalink
fix(nr) Fix license key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetcanozcan committed Sep 9, 2024
1 parent 99aee02 commit 82e1e6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/newrelic/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
keyEnabled = "enabled"

keyAppName = "appname"
keyLicence = "licence"
keyLicense = "license"

keyAppLogEnabled = "logenabled"
)
Expand Down Expand Up @@ -44,7 +44,7 @@ func newNr(cfg *config.Config, opts *options) (*newrelic.Application, error) {
opts.nrOptions,
newrelic.ConfigEnabled(true),
newrelic.ConfigAppName(nrcfg.GetString(keyAppName)),
newrelic.ConfigLicense(nrcfg.GetString(keyAppName)),
newrelic.ConfigLicense(nrcfg.GetString(keyLicense)),
newrelic.ConfigAppLogEnabled(nrcfg.GetBool(keyAppLogEnabled)),
)

Expand All @@ -53,6 +53,6 @@ func newNr(cfg *config.Config, opts *options) (*newrelic.Application, error) {

func setDefaultConfigs(cfg *config.Config) {
cfg.SetDefault(keyEnabled, false)
cfg.SetDefault(keyLicence, "")
cfg.SetDefault(keyLicense, "")
cfg.SetDefault(keyAppLogEnabled, true)
}

0 comments on commit 82e1e6c

Please sign in to comment.