From c60395716783e3e5a51755ca60f4264c03f8e178 Mon Sep 17 00:00:00 2001 From: ascrutae Date: Mon, 22 Apr 2019 08:06:05 +0800 Subject: [PATCH] Fix issue that http plugin can't got the operation name --- modules/nodejs-agent/lib/plugins/http/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nodejs-agent/lib/plugins/http/http.js b/modules/nodejs-agent/lib/plugins/http/http.js index 9d205d9..d60655e 100644 --- a/modules/nodejs-agent/lib/plugins/http/http.js +++ b/modules/nodejs-agent/lib/plugins/http/http.js @@ -94,7 +94,7 @@ module.exports = function(httpModule, instrumentation, contextManager) { function wrapRequest(original) { return function(options, callback) { let contextCarrier = new ContextCarrier(); - let span = contextManager.createExitSpan(options.pathname, options.host + ":" + options.port, contextCarrier); + let span = contextManager.createExitSpan(options.path, options.host + ":" + options.port, contextCarrier); contextCarrier.pushBy(function(key, value) { if (!options.hasOwnProperty("headers")) { options.headers = {};