From 1d6df8eba99c4e2a4a11f375d4bacc433e2bce9d Mon Sep 17 00:00:00 2001 From: Andy Trevorah <andy@troupe.co> Date: Thu, 9 Oct 2014 10:31:12 +0100 Subject: [PATCH] removed cube --- README.md | 2 +- lib/stats.js | 37 ------------------------------------- package.json | 1 - 3 files changed, 1 insertion(+), 39 deletions(-) diff --git a/README.md b/README.md index f09ae3e..cb4e37f 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Once you've got your `env` instance, here are some things you can do with it ## Statistics -`env.stats` will send statistics to Datadog, Cube, Mixpanel and other places. +`env.stats` will send statistics to Datadog, Mixpanel and other places. * `env.stats.event('name')` - increment a counter * `env.stats.eventHF('name', [count], [frequency])` - increment a high frequency counter diff --git a/lib/stats.js b/lib/stats.js index 7aaa5ae..75b307a 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -25,7 +25,6 @@ exports.create = function(options) { var mixpanelEnabled = config.get("stats:mixpanel:enabled"); var gaEnabled = config.get('stats:ga:enabled'); var statsdEnabled = config.get("stats:statsd:enabled"); - var cubeEnabled = config.get("stats:cube:enabled"); var consoleEnabled = config.get("stats:console:enabled"); var intercomEnabled = config.get("stats:intercom:enabled"); @@ -78,42 +77,6 @@ exports.create = function(options) { }); } - /** - * cube - */ - if (cubeEnabled) { - var Cube = require("cube"); - var statsUrl = config.get("stats:cube:cubeUrl"); - var cube = Cube.emitter(statsUrl); - - statsHandlers.event.push(function(eventName, properties) { - if(!properties) properties = {}; - - properties.env = config.runtimeEnvironment; - - var event = { - type: "gitter_" + eventName.replace(/\./g, '_'), - time: new Date(), - data: properties - }; - cube.send(event); - }); - - statsHandlers.charge.push(function (userId, usd) { - - var event = { - type: 'gitter_charge', - time: new Date(), - data: { - userId: userId, - usd: usd, - env: config.runtimeEnvironment - } - }; - cube.send(event); - }); - } - /** * statsd */ diff --git a/package.json b/package.json index 337849f..5c61980 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "async": "^0.8.0", "blocked": "^1.0.0", "clockout": "0.0.1", - "cube": "git://github.com/gitterHQ/cube.git#b6c53a92190bcd3c945083e6b27edb25be0c134c", "intercom.io": "~0.0.8", "mixpanel": "0.0.20", "nconf": "^0.6.9", -- GitLab