fix tag name (#123)
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 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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
- { 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 @@
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 @@
- { 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 @@
- { 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 @@
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 @@
- { 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 @@
- { 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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
- { 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 @@
- { 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 @@
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 }