From 82e1e6c7c80f57868227ea7d49f77d27c5f4a684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmetcan=20=C3=96ZCAN?= Date: Mon, 9 Sep 2024 10:36:51 +0300 Subject: [PATCH] fix(nr) Fix license key issue --- modules/newrelic/module.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/newrelic/module.go b/modules/newrelic/module.go index 7235f8e..f6b8016 100644 --- a/modules/newrelic/module.go +++ b/modules/newrelic/module.go @@ -14,7 +14,7 @@ const ( keyEnabled = "enabled" keyAppName = "appname" - keyLicence = "licence" + keyLicense = "license" keyAppLogEnabled = "logenabled" ) @@ -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)), ) @@ -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) }