Skip to content

Commit

Permalink
fix: without credentials, newrelic must be disable (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarzao authored Feb 19, 2021
1 parent fcb98f0 commit 15b3288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/shared/instrumentation/newrelic/new_relic.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func NewRelicApp(appName, licenseKey string, log *logrus.Entry) (*newrelic.Application, error) {
if appName == "" || licenseKey == "" {
log.Warnf("empty app name or license key for new relic application: falling back to empty tracer")
return &newrelic.Application{}, nil
return newrelic.NewApplication(newrelic.ConfigEnabled(false))
}

log.WithField("appName", appName).Info("starting new relic tracing")
Expand Down

0 comments on commit 15b3288

Please sign in to comment.