Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

newrelic-node

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newrelic-node - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

newrelic/lib/logs/newrelic_agent.log.1

2

package.json
{ "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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc