This is an automated email from the ASF dual-hosted git repository.

wusheng 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 2eacaeb  Change `type` to `resourceType` (#148)
2eacaeb is described below

commit 2eacaeb2888b35a62dc2584034e6448c2644d6ba
Author: Fine0830 <[email protected]>
AuthorDate: Wed Jan 8 11:58:30 2025 +0800

    Change `type` to `resourceType` (#148)
---
 src/performance/index.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/performance/index.ts b/src/performance/index.ts
index 1d4853b..74c73f2 100644
--- a/src/performance/index.ts
+++ b/src/performance/index.ts
@@ -51,7 +51,7 @@ class TracePerf {
   };
   private perfInfo = {};
   private coreWebMetrics: Record<string, unknown> = {};
-  private resources: {name: string, duration: number, size: number, protocol: 
string, type: string}[] = [];
+  private resources: {name: string, duration: number, size: number, protocol: 
string, resourceType: string}[] = [];
   public getPerf(options: CustomOptionsType) {
     this.options = options;
     this.perfInfo = {
@@ -81,7 +81,7 @@ class TracePerf {
         duration: Math.floor(d.duration),
         size: d.transferSize,
         protocol: d.nextHopProtocol,
-        type: d.initiatorType,
+        resourceType: d.initiatorType,
       }));
       this.resources.push(...newResources);
     });
@@ -96,7 +96,7 @@ class TracePerf {
         duration: Math.floor(d.duration),
         size: d.transferSize, 
         protocol: d.nextHopProtocol,
-        type: d.initiatorType,
+        resourceType: d.initiatorType,
       }));
     const list = [...newResources, ...this.resources];
     if (!list.length) {

Reply via email to