Skip to content

Conversation

michaloo
Copy link
Contributor

No description provided.

@michaloo michaloo requested a review from gabrielnau September 26, 2018 12:13
this.metrics = metrics;
metrics.init({
host: process.env.HOST,
host: process.env.DATADOG_HOST || process.env.HOST,
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I would fallback to a hardcoded value here. It will be easier to manage and make sure we don't send a different host by default for each new connector if the DATADOG_HOST variable is not set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, not sure about putting our infra specific URL in this library. What we can do differently to achieve what's important to you is to exit the process early with a descriptive error when DATADOG_HOST env var is missing and we have DATADOG_API_KEY present.
@sbellity @gabrielnau?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants