Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
change host to hostname (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: Xin,Zhang <zhangxin@apache.org>
  • Loading branch information
wu-sheng and ascrutae committed Mar 5, 2020
1 parent 443ad67 commit aa0fe63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nodejs-agent/lib/plugins/http/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit aa0fe63

Please sign in to comment.