You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by zh...@apache.org on 2021/04/25 07:31:54 UTC
[skywalking-client-js] branch master updated: fix: update peer (#51)
This is an automated email from the ASF dual-hosted git repository.
zhangwei24 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-client-js.git
The following commit(s) were added to refs/heads/master by this push:
new 7ae0775 fix: update peer (#51)
7ae0775 is described below
commit 7ae0775b0c41327718041eae321d3c97e5e90edf
Author: Qiuxia Fan <fi...@outlook.com>
AuthorDate: Sun Apr 25 15:31:45 2021 +0800
fix: update peer (#51)
---
src/trace/interceptors/fetch.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/trace/interceptors/fetch.ts b/src/trace/interceptors/fetch.ts
index 1936302..aca37a1 100644
--- a/src/trace/interceptors/fetch.ts
+++ b/src/trace/interceptors/fetch.ts
@@ -96,7 +96,7 @@ export default function windowFetch(options: CustomOptionsType, segments: Segmen
isError: result.status === 0 || result.status >= 400, // when requests failed, the status is 0
parentSpanId: segment.spans.length - 1,
componentId: ComponentId,
- peer: result.url.host,
+ peer: url.host,
tags: options.detailMode
? [
{