From f6ebc9f95b8df0707214176d41597da5474dcdce Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Mon, 20 Apr 2015 14:30:48 +0200 Subject: [PATCH] Expand docs --- plugins/c9.ide.metrics/metrics.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/c9.ide.metrics/metrics.js b/plugins/c9.ide.metrics/metrics.js index ff19b8f3..83f6f527 100644 --- a/plugins/c9.ide.metrics/metrics.js +++ b/plugins/c9.ide.metrics/metrics.js @@ -78,8 +78,14 @@ define(function(require, exports, module) { * Set a metric value for this user/workspace, * e.g. the time it takes to load this workspace. * - * These metrics get logged to a service like datadog, - * namespaced in c9.ide.metrics. + * Metrics logged with log() are aggregated by workspace + * and logged to a service like datadog, namespaced in c9.ide.metrics. + * + * Calling log() consecutively for one metric with different values + * will set the metric to a different value each time. For aggregation + * and bandwidth purposes, the last value wins in such a scenario. + * For example, `log("ping", 50); log("ping", 100);` indicates + * out ping metric has a value of 100. * * Example: *