New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

appmetrics

Package Overview
Dependencies
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appmetrics - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

showBuildInfo.js

4

package.json
{
"name": "appmetrics",
"version": "5.0.0",
"version": "5.0.1",
"engines": {

@@ -32,3 +32,3 @@ "node": ">=6"

"travis": "npm test",
"install": "node extract_all_binaries.js || node-gyp rebuild"
"install": "node showBuildInfo.js && node-gyp rebuild"
},

@@ -35,0 +35,0 @@ "directories": {

@@ -48,5 +48,7 @@ /*******************************************************************************

if (traceUrl !== '') {
that.metricsProbeStart(probeData, httpReq.method, traceUrl);
that.requestProbeStart(probeData, httpReq.method, traceUrl);
aspect.after(res, 'end', probeData, function(obj, methodName, args, probeData, ret) {
// Issue #590 - need to keep the probedata context separate from other requests
var context = {};
that.metricsProbeStart(context, httpReq.method, traceUrl);
that.requestProbeStart(context, httpReq.method, traceUrl);
aspect.after(res, 'end', context, function(obj, methodName, args, probeData, ret) {
that.metricsProbeEnd(probeData, httpReq.method, traceUrl, res, httpReq);

@@ -53,0 +55,0 @@ that.requestProbeEnd(probeData, httpReq.method, traceUrl, res, httpReq);

@@ -50,5 +50,7 @@ /*******************************************************************************

if (traceUrl !== '') {
that.metricsProbeStart(probeData, httpsReq.method, traceUrl);
that.requestProbeStart(probeData, httpsReq.method, traceUrl);
aspect.after(res, 'end', probeData, function(obj, methodName, args, probeData, ret) {
// Issue #590 - need to keep the probedata context separate from other requests
var context = {};
that.metricsProbeStart(context, httpsReq.method, traceUrl);
that.requestProbeStart(context, httpsReq.method, traceUrl);
aspect.after(res, 'end', context, function(obj, methodName, args, probeData, ret) {
that.metricsProbeEnd(probeData, httpsReq.method, traceUrl, res, httpsReq);

@@ -55,0 +57,0 @@ that.requestProbeEnd(probeData, httpsReq.method, traceUrl, res, httpsReq);

@@ -266,3 +266,3 @@ /*******************************************************************************

var callerLine = trace.stack.split('\n'); // This line contains 'node_modules' reference for generic libs
return callerLine[6].indexOf('node_modules') == -1;
return callerLine[6].indexOf('node_modules') == -1 && callerLine[6].indexOf('ibmapm') == -1;
}

@@ -269,0 +269,0 @@

@@ -55,2 +55,6 @@ # Node Application Metrics

### Pre-requisites:
Appmetrics uses `node-gyp` to compile and build local binary libraries to enhance execution performance. If the following compilation and build logs contain errors, make sure you have the node-gyp pre-requisites installed \(https://github.com/nodejs/node-gyp#installation). If you have them and the build still had errors, see if there are any related issues at https://github.com/RuntimeTools/appmetrics/issues). If there aren\'t, feel free to open a new issue to report the bug.
### Installation

@@ -404,3 +408,3 @@

### Event: 'request'
Requests are a special type of event emitted by appmetrics. All the probes named above can also create request events if requests are enabled. Howver requests are nested within a root incoming request (usually http). Request events are disabled by default.
Requests are a special type of event emitted by appmetrics. All the probes named above can also create request events if requests are enabled. However requests are nested within a root incoming request (usually http). Request events are disabled by default.
* `data` (Object) the data from the request:

@@ -488,5 +492,6 @@ * `time` (Number) the milliseconds when the request occurred. This can be converted to a Date using `new Date(data.time)`.

## Version
5.0.0
5.0.1
## Release History
`5.0.1` - Bug fix for incorrect timings on http requests.
`5.0.0` - Add Node 12 support, remove Node 6 support.

@@ -493,0 +498,0 @@ `4.0.1` - Bug fix release including adding Node 10 support on Windows (Unix already working).

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