-
Notifications
You must be signed in to change notification settings - Fork 34
Allow to disable hostname #65
Allow to disable hostname #65
Conversation
072f542
to
9961ae9
Compare
Thanks for the PR! @mheffner can I get your +1 on this or thoughts? I'm not opposed to merging this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question on the legacy flag check, but LGTM.
lib/librato.js
Outdated
// Set global measurement tags if they are defined. | ||
if (config.librato.writeToLegacy && Object.keys(config.librato.writeToLegacy).length) { | ||
// Write legacy metrics if enabled. | ||
if (config.librato.writeToLegacy) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unrelated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bryanmikaelian did we have a broken check here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh weird. The check is valid but it looks like the comment was wrong.
@johanneswuerbach Would you mind taking this out of your PR? I'll update the comment and verify everything is working in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but the check seems wrong for a boolean value Object.keys(true).length === 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
This allows to disable sending a host tag by setting the host to false.
9961ae9
to
53fc3e6
Compare
This allows to disable sending a host tag by setting the host to
false
.This helps in cases where statsd is not running on the same instance the tracked application is running.