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-nodejs.git


The following commit(s) were added to refs/heads/master by this push:
     new fa7fd65  fix tag name (#123)
fa7fd65 is described below

commit fa7fd652d7a527c457efb99429ca03ddf23b370f
Author: 何延龙 <hey.yanl...@gmail.com>
AuthorDate: Thu Jun 20 22:46:57 2024 +0800

    fix tag name (#123)
---
 src/Tag.ts                                | 2 +-
 tests/plugins/axios/expected.data.yaml    | 8 ++++----
 tests/plugins/express/expected.data.yaml  | 8 ++++----
 tests/plugins/http/expected.data.yaml     | 8 ++++----
 tests/plugins/ioredis/expected.data.yaml  | 6 +++---
 tests/plugins/mongodb/expected.data.yaml  | 6 +++---
 tests/plugins/mongoose/expected.data.yaml | 6 +++---
 tests/plugins/mysql/expected.data.yaml    | 6 +++---
 tests/plugins/mysql2/expected.data.yaml   | 6 +++---
 tests/plugins/pg/expected.data.yaml       | 6 +++---
 10 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/src/Tag.ts b/src/Tag.ts
index 2001fc9..258f325 100644
--- a/src/Tag.ts
+++ b/src/Tag.ts
@@ -25,7 +25,7 @@ export interface Tag {
 
 export default {
   coldStartKey: 'coldStart',
-  httpStatusCodeKey: 'http.status.code', // TODO: maybe find a better place to 
put these?
+  httpStatusCodeKey: 'http.status_code', // TODO: maybe find a better place to 
put these?
   httpStatusMsgKey: 'http.status.msg',
   httpURLKey: 'http.url',
   httpMethodKey: 'http.method',
diff --git a/tests/plugins/axios/expected.data.yaml 
b/tests/plugins/axios/expected.data.yaml
index a8bfdc6..61e897e 100644
--- a/tests/plugins/axios/expected.data.yaml
+++ b/tests/plugins/axios/expected.data.yaml
@@ -37,7 +37,7 @@ segmentItems:
                 value: http://httpbin.org/json
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -59,7 +59,7 @@ segmentItems:
                 value: http://server:5000/axios
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -87,7 +87,7 @@ segmentItems:
                 value: http://server:5000/axios
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -109,7 +109,7 @@ segmentItems:
                 value: http://localhost:5001/axios
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
diff --git a/tests/plugins/express/expected.data.yaml 
b/tests/plugins/express/expected.data.yaml
index d49d98d..51b0981 100644
--- a/tests/plugins/express/expected.data.yaml
+++ b/tests/plugins/express/expected.data.yaml
@@ -33,7 +33,7 @@ segmentItems:
                 value: http://server:5000/express
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -68,7 +68,7 @@ segmentItems:
                 value: http://httpbin.org/json
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -89,7 +89,7 @@ segmentItems:
                 value: http://localhost:5001/test/express
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -109,7 +109,7 @@ segmentItems:
                 value: http://server:5000/express
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
diff --git a/tests/plugins/http/expected.data.yaml 
b/tests/plugins/http/expected.data.yaml
index c20180b..22fdad8 100644
--- a/tests/plugins/http/expected.data.yaml
+++ b/tests/plugins/http/expected.data.yaml
@@ -39,7 +39,7 @@ segmentItems:
                 value: http://server:5000/test
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -68,7 +68,7 @@ segmentItems:
                 value: http://httpbin.org/json
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -95,7 +95,7 @@ segmentItems:
                 value: http://localhost:5001/test
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
@@ -115,7 +115,7 @@ segmentItems:
                 value: http://server:5000/test
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: '200'
               - key: http.status.msg
                 value: OK
diff --git a/tests/plugins/ioredis/expected.data.yaml 
b/tests/plugins/ioredis/expected.data.yaml
index 352aeaf..4ea5ba6 100644
--- a/tests/plugins/ioredis/expected.data.yaml
+++ b/tests/plugins/ioredis/expected.data.yaml
@@ -80,7 +80,7 @@ segmentItems:
             tags:
               - { key: http.url, value: "http://server:5000/ioredis"; }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: "200" }
+              - { key: http.status_code, value: "200" }
               - { key: http.status.msg, value: OK }
             refs:
               - parentEndpoint: ""
@@ -111,7 +111,7 @@ segmentItems:
               - { key: coldStart, value: "true" }
               - { key: http.url, value: "http://localhost:5001/ioredis"; }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: "200" }
+              - { key: http.status_code, value: "200" }
               - { key: http.status.msg, value: OK }
           - operationName: /ioredis
             operationId: 0
@@ -127,5 +127,5 @@ segmentItems:
             tags:
               - { key: http.url, value: "http://server:5000/ioredis"; }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: "200" }
+              - { key: http.status_code, value: "200" }
               - { key: http.status.msg, value: OK }
diff --git a/tests/plugins/mongodb/expected.data.yaml 
b/tests/plugins/mongodb/expected.data.yaml
index 83d1fa3..8d171c1 100644
--- a/tests/plugins/mongodb/expected.data.yaml
+++ b/tests/plugins/mongodb/expected.data.yaml
@@ -66,7 +66,7 @@ segmentItems:
               - { key: coldStart, value: 'true' }
               - { key: http.url, value: 'http://server:5000/mongo' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }
             refs:
               - parentEndpoint: ""
@@ -97,7 +97,7 @@ segmentItems:
               - { key: coldStart, value: 'true' }
               - { key: http.url, value: 'http://localhost:5001/mongo' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }
           - operationName: /mongo
             operationId: 0
@@ -113,5 +113,5 @@ segmentItems:
             tags:
               - { key: http.url, value: 'http://server:5000/mongo' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }
diff --git a/tests/plugins/mongoose/expected.data.yaml 
b/tests/plugins/mongoose/expected.data.yaml
index b7a48d0..452d72b 100644
--- a/tests/plugins/mongoose/expected.data.yaml
+++ b/tests/plugins/mongoose/expected.data.yaml
@@ -80,7 +80,7 @@ segmentItems:
               - { key: coldStart, value: 'true' }
               - { key: http.url, value: 'http://server:5000/mongoose' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }
             refs:
               - parentEndpoint: ""
@@ -111,7 +111,7 @@ segmentItems:
               - { key: coldStart, value: 'true' }
               - { key: http.url, value: 'http://localhost:5001/mongoose' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }
           - operationName: /mongoose
             operationId: 0
@@ -127,5 +127,5 @@ segmentItems:
             tags:
               - { key: http.url, value: 'http://server:5000/mongoose' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }
diff --git a/tests/plugins/mysql/expected.data.yaml 
b/tests/plugins/mysql/expected.data.yaml
index 0fa6998..a548068 100644
--- a/tests/plugins/mysql/expected.data.yaml
+++ b/tests/plugins/mysql/expected.data.yaml
@@ -57,7 +57,7 @@ segmentItems:
                 value: http://server:5000/mysql
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: "200"
               - key: http.status.msg
                 value: OK
@@ -93,7 +93,7 @@ segmentItems:
                 value: http://localhost:5001/mysql
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: "200"
               - key: http.status.msg
                 value: OK
@@ -113,7 +113,7 @@ segmentItems:
                 value: http://server:5000/mysql
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: "200"
               - key: http.status.msg
                 value: OK
diff --git a/tests/plugins/mysql2/expected.data.yaml 
b/tests/plugins/mysql2/expected.data.yaml
index 0fa6998..a548068 100644
--- a/tests/plugins/mysql2/expected.data.yaml
+++ b/tests/plugins/mysql2/expected.data.yaml
@@ -57,7 +57,7 @@ segmentItems:
                 value: http://server:5000/mysql
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: "200"
               - key: http.status.msg
                 value: OK
@@ -93,7 +93,7 @@ segmentItems:
                 value: http://localhost:5001/mysql
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: "200"
               - key: http.status.msg
                 value: OK
@@ -113,7 +113,7 @@ segmentItems:
                 value: http://server:5000/mysql
               - key: http.method
                 value: GET
-              - key: http.status.code
+              - key: http.status_code
                 value: "200"
               - key: http.status.msg
                 value: OK
diff --git a/tests/plugins/pg/expected.data.yaml 
b/tests/plugins/pg/expected.data.yaml
index 2c7bd06..06f7713 100644
--- a/tests/plugins/pg/expected.data.yaml
+++ b/tests/plugins/pg/expected.data.yaml
@@ -51,7 +51,7 @@ segmentItems:
               - { key: coldStart, value: 'true' }
               - { key: http.url, value: 'http://server:5000/postgres' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }
             refs:
               - parentEndpoint: ""
@@ -82,7 +82,7 @@ segmentItems:
               - { key: coldStart, value: 'true' }
               - { key: http.url, value: 'http://localhost:5001/postgres' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }
           - operationName: /postgres
             operationId: 0
@@ -98,5 +98,5 @@ segmentItems:
             tags:
               - { key: http.url, value: 'http://server:5000/postgres' }
               - { key: http.method, value: GET }
-              - { key: http.status.code, value: '200' }
+              - { key: http.status_code, value: '200' }
               - { key: http.status.msg, value: OK }

Reply via email to