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

appmetrics

Package Overview
Dependencies
Maintainers
4
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 1.0.8 to 1.0.10

probes/basho-riak-client-probe.js

16

download_all_binaries.js

@@ -43,4 +43,4 @@ /*******************************************************************************

'win32-x64'];
var AGENTCORE_VERSION = "3.0.6";
var APPMETRICS_VERSION = "1.0.8";
var AGENTCORE_VERSION = "3.0.9";
var APPMETRICS_VERSION = "1.0.9";

@@ -112,5 +112,3 @@ var LOG_FILE = path.join(INSTALL_DIR, 'install.log');

if (process.version.indexOf('v6') === 0) {
console.log('npm installation is not supported with version ' + process.version+'.');
console.log('Please install from GitHub using the command npm install git://github.com/RuntimeTools/appmetrics');
process.exit(1);
return '6';
}

@@ -122,2 +120,6 @@ console.log('Unsupported version ' + process.version + '. Exiting.');

var getAgentCorePlatformVersionDownloadURL = function() {
if ((process.version.indexOf('v0.10') === 0) && (ARCH === 'ppc') && (OS === 'aix')) {
AGENTCORE_VERSION = "3.0.6";
}
return [BASE_DOWNLOAD_URL, 'core/tgz'].join('/') +

@@ -128,2 +130,6 @@ ['/agentcore', AGENTCORE_VERSION, getPlatform()].join('-') + '.tgz';

var getAppMetricsPlatformVersionDownloadURL = function() {
if ((process.version.indexOf('v0.10') === 0) && (ARCH === 'ppc') && (OS === 'aix')) {
APPMETRICS_VERSION = "1.0.8";
}
return [BASE_DOWNLOAD_URL, 'nodejs/tgz', getSupportedNodeVersionOrExit()].join('/') +

@@ -130,0 +136,0 @@ ['/appmetrics', APPMETRICS_VERSION, getPlatform()].join('-') + '.tgz';

@@ -20,3 +20,3 @@ /*******************************************************************************

var domain = require('domain');
var am = require('appmetrics');
var am = require('../');

@@ -23,0 +23,0 @@ /*

{
"name": "appmetrics",
"version": "1.0.8",
"version": "1.0.10",
"description": "Node Application Metrics",

@@ -5,0 +5,0 @@ "bin": { "node-hc": "bin/appmetrics-cli.js" },

@@ -52,3 +52,3 @@ /*******************************************************************************

aspect.after(res, 'end', probeData, function(obj, methodName, args, probeData, ret) {
that.metricsProbeEnd(probeData, httpReq.method, traceUrl);
that.metricsProbeEnd(probeData, httpReq.method, traceUrl, res);
that.requestProbeEnd(probeData, httpReq.method, traceUrl);

@@ -102,5 +102,5 @@ });

HttpProbe.prototype.metricsEnd = function(probeData, method, url) {
HttpProbe.prototype.metricsEnd = function(probeData, method, url, res) {
probeData.timer.stop();
am.emit('http', {time: probeData.timer.startTimeMillis, method: method, url: url, duration: probeData.timer.timeDelta});
am.emit('http', {time: probeData.timer.startTimeMillis, method: method, url: url, duration: probeData.timer.timeDelta, header: res._header, statusCode: res.statusCode, contentType: res.getHeader('content-type')});
};

@@ -107,0 +107,0 @@

@@ -53,5 +53,3 @@ /*******************************************************************************

lvldownObj._ddProbeAttached_=true;
aspect.after(lvldownObj, 'open', {}, function(dbTarget, methodName, args, probeData,rc){
aspectLvldownMethod(dbTarget, methods, that);
})
aspectLvldownMethod(lvldownObj, methods, that);
return lvldownObj;

@@ -58,0 +56,0 @@ };

@@ -27,3 +27,3 @@ # Node Application Metrics

MQLight | MQLight messages sent and received by the application
Memcached | Data that stored or manupulated in Memcached
Memcached | Data that is stored or manipulated in Memcached
OracleDB | OracleDB queries made by the application

@@ -33,2 +33,3 @@ Oracle | Oracle queries made by the application

Redis | Redis commands issued by the application
Riak | Riak methods called by the application
Request tracking | A tree of application requests, events and optionally trace (disabled by default)

@@ -41,3 +42,10 @@ Function trace | Tracing of application function calls that occur during a request (disabled by default)

The Node Application Metrics agent supports the following runtime environments:
* **Node.js v6** on:
* 64-bit or 32-bit runtime on Windows (x64 or x86)
* 64-bit or 32-bit runtime on Linux (x64, x86)
* 64-bit or 32-bit runtime on Mac OS X (x64 or x86)
* **Node.js v5** on:
* 64-bit or 32-bit runtime on Windows (x64 or x86)
* 64-bit or 32-bit runtime on Linux (x64, x86)
* 64-bit or 32-bit runtime on Mac OS X (x64 or x86)
* **Node.js v4 and io.js v2** on:

@@ -172,3 +180,3 @@ * 64-bit or 32-bit runtime on Windows (x64 or x86)

Enable data generation of the specified data type.
* `type` (String) the type of event to start generating data for. Values of `eventloop`, `profiling`, `http`, `mongo`, `socketio`, `mqlight`, `postgresql`, `mqtt`, `mysql`, `redis`, `memcached`, `oracledb`, `oracle`, `strong-oracle`, `requests` and `trace` are currently supported. As `trace` is added to request data, both `requests` and `trace` must be enabled in order to receive trace data.
* `type` (String) the type of event to start generating data for. Values of `eventloop`, `profiling`, `http`, `mongo`, `socketio`, `mqlight`, `postgresql`, `mqtt`, `mysql`, `redis`, `riak`, `memcached`, `oracledb`, `oracle`, `strong-oracle`, `requests` and `trace` are currently supported. As `trace` is added to request data, both `requests` and `trace` must be enabled in order to receive trace data.
* `config` (Object) (optional) configuration map to be added for the data type being enabled. (see *[setConfig](#set-config)*) for more information.

@@ -180,3 +188,3 @@

Disable data generation of the specified data type.
* `type` (String) the type of event to stop generating data for. Values of `eventloop`, `profiling`, `http`, `mongo`, `socketio`, `mqlight`, `postgresql`, `mqtt`, `mysql`, `redis`, `memcached`, `oracledb`, `oracle`, `strong-oracle`, `requests` and `trace` are currently supported.
* `type` (String) the type of event to stop generating data for. Values of `eventloop`, `profiling`, `http`, `mongo`, `socketio`, `mqlight`, `postgresql`, `mqtt`, `mysql`, `redis`, `riak`, `memcached`, `oracledb`, `oracle`, `strong-oracle`, `requests` and `trace` are currently supported.

@@ -322,2 +330,12 @@ <a name="set-config"></a>

### Event: 'riak'
Emitted when a Riak method is called using the `basho-riak-client` module.
* `data` (Object) the data from the Riak event:
* `time` (Number) the time in milliseconds when the riak event occurred. This can be converted to a Date using new Date(data.time).
* `method` (String) the Riak method called.
* `options` (Object) the options parameter passed to Riak.
* `command` (Object) the command parameter used in the `execute` method.
* `query` (String) the query parameter used in the `mapReduce` method.
* `duration` (Number) the time taken in milliseconds.
### Event: 'memcached'

@@ -426,5 +444,6 @@ Emitted when a data is stored, retrieved or modified in Memcached using the `memcached` module.

## Version
1.0.8
1.0.9
## Release History
`1.0.9` - Node.js v6 support. Loopback and Riak support, bug fixes and update to agent core 3.0.9.
`1.0.8` - Oracle support, bug fixes and api tests runnable using 'npm test'.

@@ -431,0 +450,0 @@ `1.0.7` - StrongOracle support, support for installing with a proxy, expose MongoDB, MQLight and MySQL events to connectors.

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