commit | 7ae0775b0c41327718041eae321d3c97e5e90edf | [log] [tgz] |
---|---|---|
author | Qiuxia Fan <fine0830@outlook.com> | Sun Apr 25 15:31:45 2021 +0800 |
committer | GitHub <noreply@github.com> | Sun Apr 25 15:31:45 2021 +0800 |
tree | 5f896d83eb4feee6bd9f534eaee2a8fd35d717c7 | |
parent | 99352bcf31c8c3605bdedbf12a695cd5a66dbbfb [diff] |
fix: update peer (#51)
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 @@ 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 ? [ {