whatap 0.5.23 → 0.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -281,10 +281,9 @@ var ConfigDefault = {
|
|
|
281
281
|
"profile_mongodb_param_enabled": bool("profile_mongodb_param_enabled", false),
|
|
282
282
|
|
|
283
283
|
"trace_mtrace_traceparent_key": str("trace_mtrace_traceparent_key", "traceparent"),
|
|
284
|
-
|
|
285
284
|
"txtext_txname_enabled": bool("txtext_txname_enabled", true),
|
|
286
|
-
|
|
287
|
-
"
|
|
285
|
+
"ignore_env_variable_set": str("ignore_env_variable_set", ""),
|
|
286
|
+
"profile_httpc_start_step_enabled": bool("profile_httpc_start_step_enabled", false)
|
|
288
287
|
|
|
289
288
|
};
|
|
290
289
|
|
|
@@ -852,6 +852,19 @@ HttpObserver.prototype.inject = function( mod, moduleName ) {
|
|
|
852
852
|
ctx.footprint('Http Call Start');
|
|
853
853
|
|
|
854
854
|
if (ctx.httpc_port < 0) { ctx.httpc_port = 80 };
|
|
855
|
+
|
|
856
|
+
if(conf.getProperty('profile_httpc_start_step_enabled', false)){
|
|
857
|
+
step.elapsed = ctx.getElapsedTime() - step.start_time;
|
|
858
|
+
step.url = HashUtil.hashFromString(ctx.httpc_url);
|
|
859
|
+
DataTextAgent.HTTPC_URL.add(step.url, ctx.httpc_url);
|
|
860
|
+
step.host = HashUtil.hashFromString(ctx.httpc_host);
|
|
861
|
+
DataTextAgent.HTTPC_HOST.add(step.host, ctx.httpc_host);
|
|
862
|
+
step.port = ctx.httpc_port;
|
|
863
|
+
|
|
864
|
+
ctx.active_httpc_hash = step.url;
|
|
865
|
+
ctx.profile.push(step);
|
|
866
|
+
endHttpc(ctx, step);
|
|
867
|
+
}
|
|
855
868
|
}catch (e) {
|
|
856
869
|
Logger.printError('WHATAP-852', 'Http Repeat ', e, true);
|
|
857
870
|
return original.apply(this, arguments);
|
package/package.json
CHANGED