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

config: support overriding agent endpoint via env #405

Merged
merged 1 commit into from
Apr 10, 2018
Merged

Conversation

LeoCavaille
Copy link
Member

For internal use.

@palazzem palazzem added the core label Mar 27, 2018
@palazzem palazzem added this to the 6.1.1 milestone Mar 27, 2018
@palazzem palazzem requested a review from LotharSee March 27, 2018 12:35
Copy link

@palazzem palazzem left a comment

Choose a reason for hiding this comment

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

All good to me. @LotharSee maybe you want to check this change too just to be aware of it?

@@ -26,6 +26,10 @@ func mergeEnv(c *AgentConfig) {
c.HostName = v
}

if v := os.Getenv("DD_TRACE_AGENT_ENDPOINT"); v != "" {

Choose a reason for hiding this comment

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

To kind of align it with its config option apm_config.apm_dd_url, good let's move to DD_APM_DD_URL. I'm not in love with that but that's the closest we will get.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in aa67dd0

@palazzem palazzem merged commit 564d3dc into master Apr 10, 2018
@palazzem palazzem deleted the leo/supportenv branch April 10, 2018 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants