lynx-express
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -69,5 +69,6 @@ /* | ||
// and replace rest with _. | ||
routeName = 'response_time.' + routeName.replace(/:/g, "").replace(/^\/|\/$/g, "").replace(/\//g, "_"); | ||
routeName = routeName.replace(/:/g, "").replace(/^\/|\/$/g, "").replace(/\//g, "_"); | ||
endTime = new Date(); | ||
client.timing(routeName, endTime - startTime); | ||
client.timing('response_time.' + routeName, endTime - startTime); | ||
client.increment("requests."+routeName); | ||
} else { | ||
@@ -74,0 +75,0 @@ endTime = new Date(); |
{ | ||
"name": "lynx-express", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Express middleware for sending response status counts and response times to statsd", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,10 @@ lynx-express | ||
Installation: | ||
``` | ||
npm install lynx-express | ||
``` | ||
Configuration: | ||
```javascript | ||
@@ -14,0 +21,0 @@ |
6042
74
41