Skip to content

Commit efe7cb3

Browse files
authored
Remove envconfig (#29)
1 parent 439c973 commit efe7cb3

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

api/pkg/instrumentation/newrelic/newrelic.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ var (
1414

1515
// Config stores NewRelic configuration.
1616
type Config struct {
17-
Enabled bool `envconfig:"NEWRELIC_ENABLED" default:"false"`
18-
AppName string `envconfig:"NEWRELIC_APP_NAME" default:"app-name"`
19-
License string `envconfig:"NEWRELIC_LICENSE" default:""`
20-
Labels map[string]interface{} `envconfig:"NEWRELIC_LABELS" default:""`
17+
Enabled bool
18+
AppName string
19+
License string
20+
Labels map[string]interface{}
2121
// https://docs.newrelic.com/docs/agents/go-agent/configuration/go-agent-configuration#error-ignore-status
22-
IgnoreStatusCodes []int `envconfig:"NEWRELIC_IGNORE_STATUS_CODES" default:"400,401,403,404,405,412"`
22+
IgnoreStatusCodes []int
2323
}
2424

2525
// InitNewRelic initializes NewRelic Application.

api/pkg/instrumentation/sentry/sentry.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ var (
2222

2323
// Config stores NewRelic configuration.
2424
type Config struct {
25-
Enabled bool `envconfig:"SENTRY_ENABLED" default:"false"`
26-
DSN string `envconfig:"SENTRY_DSN" default:""`
27-
Labels map[string]string `envconfig:"SENTRY_LABELS" default:""`
25+
Enabled bool
26+
DSN string
27+
Labels map[string]string
2828
}
2929

3030
// InitSentry creates a new Sentry client.

0 commit comments

Comments
 (0)