Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

internal/config: add DD_APM_ prefixed env. vars duplicates #552

Merged
merged 3 commits into from Jan 3, 2019
Merged

Conversation

gbbr
Copy link
Contributor

@gbbr gbbr commented Jan 3, 2019

Adds new environment variables (correctly prefixed), marking others as deprecated:

  • DD_APM_CONNECTION_LIMIT
  • DD_APM_RECEIVER_PORT
  • DD_APM_MAX_EPS
  • DD_APM_MAX_TPS
  • DD_APM_IGNORE_RESOURCES

@gbbr gbbr added this to the 6.9.0 milestone Jan 3, 2019
internal/config/env.go Show resolved Hide resolved
@gbbr
Copy link
Contributor Author

gbbr commented Jan 3, 2019

@erichgess I've added specific tests for this and replaced the map with an ordered sequence (a slice). PTAL

Copy link

@erichgess erichgess left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -14,6 +15,35 @@ func TestMain(m *testing.M) {
}

func TestLoadEnv(t *testing.T) {
t.Run("overrides", func(t *testing.T) {
// tests that newer envs. override deprecated ones

Choose a reason for hiding this comment

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

👍

@gbbr gbbr merged commit 5e28e74 into master Jan 3, 2019
@gbbr gbbr deleted the gbbr/env branch January 3, 2019 17:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants