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

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

Merged
gbbr merged 3 commits into
masterfrom
gbbr/env
Jan 3, 2019
Merged

internal/config: add DD_APM_ prefixed env. vars duplicates#552
gbbr merged 3 commits into
masterfrom
gbbr/env

Conversation

@gbbr

@gbbr gbbr commented Jan 3, 2019

Copy link
Copy Markdown
Contributor

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
Comment thread internal/config/env.go
@gbbr

gbbr commented Jan 3, 2019

Copy link
Copy Markdown
Contributor Author

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

@erichgess erichgess left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM


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

Copy link
Copy Markdown

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.

2 participants