Skip to content

Commit

Permalink
[fix] Metrics should ALWAYS emit req/res
Browse files Browse the repository at this point in the history
[dist] 0.1.11
  • Loading branch information
3rd-Eden committed Apr 3, 2013
1 parent f8aacf5 commit 91f98f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
@@ -1,3 +1,6 @@
### 0.1.11
- Ensure that all metrics emit an object with {req, res}

### 0.1.10
- A new REST route `/expire` has been added to expire individual items instead
of the whole cache.
Expand Down
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -320,9 +320,9 @@ Versions.prototype.write = function write(req, res, data) {
if (type) {
res.setHeader('Content-Encoding', type);
body = data.compressed[type];
this.metrics.incr(type);
this.metrics.incr(type, { req: req, res: res });
} else {
this.metrics.incr('compression blocked');
this.metrics.incr('compression blocked', { req: req, res: res });
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "versions",
"version": "0.1.10",
"version": "0.1.11",
"description": "Content Delivery Network",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 91f98f5

Please sign in to comment.