diff --git a/modules/nodejs-agent/lib/plugins/http/http.js b/modules/nodejs-agent/lib/plugins/http/http.js index d759f37..ddb89a6 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.path, options.host + ":" + options.port, contextCarrier); + let span = contextManager.createExitSpan(options.path, options.hostname + ":" + options.port, contextCarrier); contextCarrier.pushBy(function(key, value) { if (!options.hasOwnProperty("headers") || !options.headers) { options.headers = {};