Skip to content

Commit 8c64375

Browse files
peteyyczgergelyke
authored andcommitted
fix(pathname): replace pathname with path
1 parent 316859e commit 8c64375

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/providers/httpTransaction/wraps/http.request.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function wrapRequest (original, collector, config) {
4949
var collectorDataBag = {
5050
id: requestId,
5151
host: requestParams.host,
52-
url: requestParams.pathname,
52+
url: requestParams.path,
5353
time: clientSendTime,
5454
headers: requestParams.headers,
5555
method: requestParams.method
@@ -70,7 +70,7 @@ function wrapRequest (original, collector, config) {
7070
var collectorDataBag = {
7171
id: requestId,
7272
host: requestParams.host,
73-
url: requestParams.pathname,
73+
url: requestParams.path,
7474
time: microtime.now(),
7575
headers: requestParams.headers,
7676
err: err
@@ -83,7 +83,7 @@ function wrapRequest (original, collector, config) {
8383
var collectorDataBag = {
8484
id: requestId,
8585
host: requestParams.host,
86-
url: requestParams.pathname,
86+
url: requestParams.path,
8787
time: microtime.now(),
8888
headers: incomingMessage.headers,
8989
statusCode: incomingMessage.statusCode

lib/reporters/trace/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ TraceReporter.prototype._send = function (destinationUrl, data) {
8080
}));
8181
});
8282

83-
debug('sending http transactions to trace servers: ', payload);
83+
debug('sending data to trace servers: ', payload);
8484
req.write(payload);
8585
req.end();
8686
};

0 commit comments

Comments
 (0)