Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Add event method support #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add event method support #59

wants to merge 2 commits into from

Conversation

bdeitte
Copy link

@bdeitte bdeitte commented Aug 26, 2015

This is a reworking of mrbar42#11 to fit into node-statsd and fix up a few things in the event support.

With this addition, the only thing missing for DogStatsD is service checks. I've also tried to make clearer the DogStatsD support in the README. If/when this is pulled in, I'll submit a pull request to node-dogstatsd to direct people to just use node-statsd from now on.

Brian Deitte added 2 commits August 26, 2015 14:54
@@ -175,10 +228,10 @@ Client.prototype.sendAll = function(stat, value, type, sampleRate, tags, callbac

if(Array.isArray(stat)){
stat.forEach(function(item){
self.send(item, value, type, sampleRate, tags, onSend);
self.sendStat(item, value, type, sampleRate, tags, onSend);
Copy link
Author

Choose a reason for hiding this comment

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

I had to split the existing send method in two, and the part that is applicable to both events and stats is now called send().

@bdeitte
Copy link
Author

bdeitte commented Sep 11, 2015

Any thoughts on this? I see that there's a couple of pull request sitting around, and I'm not sure what to do here. I would really like to get this into a couple of projects at work and have it come from npm rather than the git URL I use when I have to. Is node-statsd still being updated, or is there an actively-maintained fork to contribute this to? If the answer is "no" to those two, do you want more maintainers here or a fork to be created? I'd be happy to pitch in some way or other.

@bdeitte
Copy link
Author

bdeitte commented Sep 24, 2015

I've pulled this into a different repo I'm going to help maintain so we can get a bunch of the PRs in here. https://github.com/brightcove/hot-shots

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.

1 participant