Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ type Config struct {
EnablePrometheusGRPCHistogram bool `envconfig:"ENABLE_PROMETHEUS_GRPC_HISTOGRAM" default:"true"`
// The License key for NewRelic metrics reporting
NewRelicLicenseKey string `envconfig:"NEW_RELIC_LICENSE_KEY" default:""`
// When set to true, disables all NewRelic reporting
DisableNewRelic bool `envconfig:"DISABLE_NEW_RELIC" default:"false"`
// Enable NewRelic Distributed Tracing
NewRelicDistributedTracing bool `envconfig:"NEW_RELIC_DISTRIBUTED_TRACING" default:"true"`
// Enable new relic opentelemetry
Expand Down
9 changes: 2 additions & 7 deletions core.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ func (c *cb) processConfig() {
if !c.config.DisableAutoMaxProcs {
SetupAutoMaxProcs()
}
if !c.config.DisableNewRelic {
err := SetupNewRelic(nrName, c.config.NewRelicLicenseKey, c.config.NewRelicDistributedTracing)
if err != nil {
log.Error(context.Background(), "Error setting up NewRelic tracing", "error", err)
}
}
SetupNewRelic(nrName, c.config.NewRelicLicenseKey, c.config.NewRelicDistributedTracing)
SetupSentry(c.config.SentryDSN)
SetupEnvironment(c.config.Environment)
SetupReleaseName(c.config.ReleaseName)
Expand Down Expand Up @@ -139,7 +134,7 @@ func (c *cb) processConfig() {
}
} else if c.config.NewRelicOpentelemetry {
// Fall back to New Relic OpenTelemetry if no custom OTLP is configured
err := SetupNROpenTelemetry(
err := SetupNROpenTelemetry(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: revert

nrName,
c.config.NewRelicLicenseKey,
c.config.ReleaseName,
Expand Down
12 changes: 10 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,33 @@ require (

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/bugsnag/bugsnag-go v2.5.0+incompatible // indirect
github.com/bugsnag/panicwrap v1.3.4 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/getsentry/raven-go v0.2.0 // indirect
github.com/go-kit/kit v0.13.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/klauspost/compress v1.18.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/newrelic/csec-go-agent v0.3.0 // indirect
github.com/newrelic/go-agent/v3/integrations/nrgrpc v1.4.7 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.66.1 // indirect
github.com/prometheus/procfs v0.17.0 // indirect
github.com/smarty/assertions v1.15.1 // indirect
github.com/stvp/rollbar v0.5.1 // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.17.0 // indirect
go.opentelemetry.io/otel/metric v1.38.0 // indirect
go.opentelemetry.io/otel/trace v1.38.0 // indirect
go.opentelemetry.io/proto/otlp v1.8.0 // indirect
Expand All @@ -62,6 +69,7 @@ require (
golang.org/x/net v0.44.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.29.0 // indirect
google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250922171735-9219d122eba9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250922171735-9219d122eba9 // indirect
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
Expand Down
Loading