Comparing version 0.1.2 to 0.1.3
@@ -132,2 +132,3 @@ /** | ||
//2017.05.02 AUTO ONAME | ||
"auto_oname_enabled" : false, | ||
"auto_oname_prefix" : "nodejs", | ||
@@ -134,0 +135,0 @@ "auto_oname_reset" : 0, |
@@ -13,4 +13,4 @@ /** | ||
URLPatternDetector = require('../trace/serviceurl-pattern-detector').Detector, | ||
PathMap = require('../trace/serviceurl-pattern-detector').PathMap; | ||
Long = require('long'); | ||
PathMap = require('../trace/serviceurl-pattern-detector').PathMap, | ||
Long = require('long'); | ||
@@ -48,5 +48,7 @@ var ExpressObserver = function(agent){ | ||
aop.before(mod.Router, 'use', function (obj, args) { | ||
var path = typeof args[0] === 'string' ? args[0] : '/', | ||
msg = 'Express', | ||
hash_middle = HashUtil.hashFromString(msg); | ||
if(typeof args[0] == 'string' && args[1]) { | ||
@@ -74,6 +76,8 @@ var tmp = args[1]; | ||
if(args.length > 0) { | ||
if(args.length > 1) { | ||
var func = args[args.length - 1]; | ||
if(func.length > 3) { | ||
return; | ||
} | ||
var funcName = getFunctionName(func) || 'User defined function'; | ||
aop.functionHook(args, -1, function (obj, args) { | ||
@@ -92,2 +96,5 @@ var ctx = TraceContextManager.getCurrentContext(); | ||
self.agent.aop.functionHook(args, -1, function (obj, args) { | ||
if(args[0] instanceof Error ) { | ||
return; | ||
} | ||
step.time = ctx.getElapsedTime() - step.start_time; | ||
@@ -94,0 +101,0 @@ }); |
@@ -50,2 +50,3 @@ /** | ||
this.packages = ['http','https']; | ||
URLPatternDetector.build(true); | ||
}; | ||
@@ -52,0 +53,0 @@ |
{ | ||
"name": "whatap", | ||
"homepage": "http://www.whatap.io", | ||
"version": "0.1.2", | ||
"releaseDate": "20170510", | ||
"version": "0.1.3", | ||
"releaseDate": "20170512", | ||
"description": "Monitoring and Profiling Service", | ||
@@ -7,0 +7,0 @@ "main": "index.js", |
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
956035
14003