Posts

Showing posts with the label apm

Wrap external http request in node js

Wrap external http request in node js var http = require('http'); var url = require('url').URL; var shimmer = require('shimmer') var api = {} api.wrapEmitter = require('emitter-listener') var Origional = http.get; shimmer.wrap(http, 'get', function getWrap(get) {     return makeRequestTrace(get); }) function makeRequestTrace(request) {     return function trace(options, callback) {         var req = request.call(this, options, function (res) {             console.log('Response===================' , res)             shimmer.wrap(res, 'on', function onWrap(on) {                 return function on_trace(eventName, cb) {                     if (eventName === 'data') {                         on.call(this, 'data', func...

Application monitoring tool essentials and links

basic APM tool should monitor 1. Down time of the applications 2. Capture  the slow responses 3. Compare the response time metrics for before commit  vs after commit  4. Show distributed transactions (Call trace) 5. Alerting the security issues (Ex: If external library has the security issue then it should indicate the alert )  Good Nodejs  APM  tools https://www.appdynamics.com/ https://newrelic.com/ https://www.dynatrace.com/ https://opbeat.com/ https://www.instana.com/ https://traceview.solarwinds.com/ https://risingstack.com/