newrelic-node
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ "name" : "newrelic-node" | ||
, "description" : "Logger para newrelic" | ||
, "tags" : ["newrelic"] | ||
, "version" : "0.0.8" | ||
, "version" : "0.0.9" | ||
, "author" : "Matias Rege <matias.rege@mercadolibre.com>" | ||
@@ -6,0 +6,0 @@ , "repository" : |
@@ -11,7 +11,14 @@ Agente de newrelic para node. | ||
var newrelic = require( "newrelic-node" ); | ||
newrelic.log({timespent:5000, path:"/test", httpStatus:500, httpMethod:"GET"}); | ||
newrelic.logRequest(request, response, timespent); | ||
o | ||
var newrelic = require( "newrelic-node" ); | ||
newrelic.logRequest(request, response, timespent); | ||
newrelic.log(timespent:{"URI_WEB_TRANSACTION":5000}, path:"/test", httpStatus:200, httpMethod:"GET"}); | ||
o | ||
var newrelic = require( "newrelic-node" ); | ||
newrelic.log(timespent:{"URI_WEB_TRANSACTION":5000, WEB_TRANSACTION_EXTERNAL_ALL: 1000}}, path:"/test", httpStatus:200, httpMethod:"GET"}); | ||
## Loguear errores: | ||
var newrelic = require( "newrelic-node" ); | ||
newrelic.logRequestError("Un mensaje de error", request, response, timespent); | ||
## Requisitos: | ||
@@ -18,0 +25,0 @@ JAVA 1.6 |
@@ -25,3 +25,3 @@ var newrelic = require( "../newrelic-node.js" ); | ||
it("controla que el proceso java este escuchando en el puerto",function(done){ | ||
this.timeout(12000); | ||
this.timeout(5000); | ||
//duermo 1 segundo para q levanta el server | ||
@@ -35,3 +35,3 @@ exec("sleep 3 && netstat -tpan | grep LISTEN | grep 9999", function (error, stdout, stderr) { | ||
it("envio de mensaje a proceso java",function(done){ | ||
//newrelic.log({timespent:5000,path:"/test", httpStatus:500, httpMethod:"GET"}); | ||
newrelic.log({timespent:{URI_WEB_TRANSACTION:5000},path:"/test", httpStatus:200, httpMethod:"GET"}); | ||
//termina de implementar | ||
@@ -38,0 +38,0 @@ done() |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2743659
26
33