diff --git a/v3/integrations/logcontext-v2/nrzerolog/Readme.md b/v3/integrations/logcontext-v2/nrzerolog/Readme.md index 0b2769f8a..05dbf897b 100644 --- a/v3/integrations/logcontext-v2/nrzerolog/Readme.md +++ b/v3/integrations/logcontext-v2/nrzerolog/Readme.md @@ -42,9 +42,8 @@ func main() { newrelic.ConfigAppName("NRZerolog Example"), newrelic.ConfigInfoLogger(os.Stdout), newrelic.ConfigZerologPluginEnabled(true), - newrelic.ConfigDistributedTracerEnabled(true), ) - if nil != err { + if err != nil { fmt.Println(err) os.Exit(1) } diff --git a/v3/integrations/logcontext-v2/nrzerolog/example/main.go b/v3/integrations/logcontext-v2/nrzerolog/example/main.go index 0681d153e..f79c7f232 100644 --- a/v3/integrations/logcontext-v2/nrzerolog/example/main.go +++ b/v3/integrations/logcontext-v2/nrzerolog/example/main.go @@ -19,9 +19,8 @@ func main() { newrelic.ConfigAppName("NRZerolog Example"), newrelic.ConfigInfoLogger(os.Stdout), newrelic.ConfigZerologPluginEnabled(true), - newrelic.ConfigDistributedTracerEnabled(true), ) - if nil != err { + if err != nil { fmt.Println(err) os.Exit(1) } diff --git a/v3/newrelic/config_options.go b/v3/newrelic/config_options.go index 98f2a3b7e..6adacef91 100644 --- a/v3/newrelic/config_options.go +++ b/v3/newrelic/config_options.go @@ -97,7 +97,7 @@ const ( // enabled. func ConfigZerologPluginEnabled(enabled bool) ConfigOption { return func(cfg *Config) { - if enabled == true { + if enabled { cfg.ApplicationLogging.Enabled = true cfg.ApplicationLogging.Forwarding.Enabled = true cfg.ApplicationLogging.Metrics.Enabled = true