Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.13.17
* introduce a `DATADOG_HOST` environment variable to take precedence generic `HOST` env var

# 0.13.16
* Explicitly handle too large kraken notification payloads
* Adds devMode utility
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hull",
"version": "0.13.16",
"version": "0.13.17",
"description": "A Node.js client for hull.io",
"main": "lib",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/infra/instrumentation/instrumentation-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class InstrumentationAgent {
if (process.env.DATADOG_API_KEY) {
this.metrics = metrics;
metrics.init({
host: process.env.HOST,
host: process.env.DATADOG_HOST || process.env.HOST,
Copy link
Copy Markdown
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
Copy Markdown
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?

});
dogapi.initialize({ api_key: process.env.DATADOG_API_KEY });
this.dogapi = dogapi;
Expand Down