From bcfd8a81e467d08f156ca0e46d1b623fda6a6c66 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Wed, 24 Apr 2013 07:59:34 -0400 Subject: [PATCH] better examples in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff90727..c7907e0 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ var mongoose = require("mongoose"); require("datadog-mongodb")(mongoose.mongo); ``` -Or reusing `node-dogstatsd` client +Or reusing a `node-dogstatsd` client ```javascript -var mongoDb = require("mongodb"); +var statsD = new require("node-dogstatsd").StatsD(); require("datadog-mongodb")(mongoDb, {dogstatsd: statsD}); ```