Skip to content

Commit fa7fd65

Browse files
authored
fix tag name (#123)
1 parent 530e372 commit fa7fd65

File tree

10 files changed

+31
-31
lines changed

10 files changed

+31
-31
lines changed

src/Tag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface Tag {
2525

2626
export default {
2727
coldStartKey: 'coldStart',
28-
httpStatusCodeKey: 'http.status.code', // TODO: maybe find a better place to put these?
28+
httpStatusCodeKey: 'http.status_code', // TODO: maybe find a better place to put these?
2929
httpStatusMsgKey: 'http.status.msg',
3030
httpURLKey: 'http.url',
3131
httpMethodKey: 'http.method',

tests/plugins/axios/expected.data.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ segmentItems:
3737
value: http://httpbin.org/json
3838
- key: http.method
3939
value: GET
40-
- key: http.status.code
40+
- key: http.status_code
4141
value: '200'
4242
- key: http.status.msg
4343
value: OK
@@ -59,7 +59,7 @@ segmentItems:
5959
value: http://server:5000/axios
6060
- key: http.method
6161
value: GET
62-
- key: http.status.code
62+
- key: http.status_code
6363
value: '200'
6464
- key: http.status.msg
6565
value: OK
@@ -87,7 +87,7 @@ segmentItems:
8787
value: http://server:5000/axios
8888
- key: http.method
8989
value: GET
90-
- key: http.status.code
90+
- key: http.status_code
9191
value: '200'
9292
- key: http.status.msg
9393
value: OK
@@ -109,7 +109,7 @@ segmentItems:
109109
value: http://localhost:5001/axios
110110
- key: http.method
111111
value: GET
112-
- key: http.status.code
112+
- key: http.status_code
113113
value: '200'
114114
- key: http.status.msg
115115
value: OK

tests/plugins/express/expected.data.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ segmentItems:
3333
value: http://server:5000/express
3434
- key: http.method
3535
value: GET
36-
- key: http.status.code
36+
- key: http.status_code
3737
value: '200'
3838
- key: http.status.msg
3939
value: OK
@@ -68,7 +68,7 @@ segmentItems:
6868
value: http://httpbin.org/json
6969
- key: http.method
7070
value: GET
71-
- key: http.status.code
71+
- key: http.status_code
7272
value: '200'
7373
- key: http.status.msg
7474
value: OK
@@ -89,7 +89,7 @@ segmentItems:
8989
value: http://localhost:5001/test/express
9090
- key: http.method
9191
value: GET
92-
- key: http.status.code
92+
- key: http.status_code
9393
value: '200'
9494
- key: http.status.msg
9595
value: OK
@@ -109,7 +109,7 @@ segmentItems:
109109
value: http://server:5000/express
110110
- key: http.method
111111
value: GET
112-
- key: http.status.code
112+
- key: http.status_code
113113
value: '200'
114114
- key: http.status.msg
115115
value: OK

tests/plugins/http/expected.data.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ segmentItems:
3939
value: http://server:5000/test
4040
- key: http.method
4141
value: GET
42-
- key: http.status.code
42+
- key: http.status_code
4343
value: '200'
4444
- key: http.status.msg
4545
value: OK
@@ -68,7 +68,7 @@ segmentItems:
6868
value: http://httpbin.org/json
6969
- key: http.method
7070
value: GET
71-
- key: http.status.code
71+
- key: http.status_code
7272
value: '200'
7373
- key: http.status.msg
7474
value: OK
@@ -95,7 +95,7 @@ segmentItems:
9595
value: http://localhost:5001/test
9696
- key: http.method
9797
value: GET
98-
- key: http.status.code
98+
- key: http.status_code
9999
value: '200'
100100
- key: http.status.msg
101101
value: OK
@@ -115,7 +115,7 @@ segmentItems:
115115
value: http://server:5000/test
116116
- key: http.method
117117
value: GET
118-
- key: http.status.code
118+
- key: http.status_code
119119
value: '200'
120120
- key: http.status.msg
121121
value: OK

tests/plugins/ioredis/expected.data.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ segmentItems:
8080
tags:
8181
- { key: http.url, value: "http://server:5000/ioredis" }
8282
- { key: http.method, value: GET }
83-
- { key: http.status.code, value: "200" }
83+
- { key: http.status_code, value: "200" }
8484
- { key: http.status.msg, value: OK }
8585
refs:
8686
- parentEndpoint: ""
@@ -111,7 +111,7 @@ segmentItems:
111111
- { key: coldStart, value: "true" }
112112
- { key: http.url, value: "http://localhost:5001/ioredis" }
113113
- { key: http.method, value: GET }
114-
- { key: http.status.code, value: "200" }
114+
- { key: http.status_code, value: "200" }
115115
- { key: http.status.msg, value: OK }
116116
- operationName: /ioredis
117117
operationId: 0
@@ -127,5 +127,5 @@ segmentItems:
127127
tags:
128128
- { key: http.url, value: "http://server:5000/ioredis" }
129129
- { key: http.method, value: GET }
130-
- { key: http.status.code, value: "200" }
130+
- { key: http.status_code, value: "200" }
131131
- { key: http.status.msg, value: OK }

tests/plugins/mongodb/expected.data.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ segmentItems:
6666
- { key: coldStart, value: 'true' }
6767
- { key: http.url, value: 'http://server:5000/mongo' }
6868
- { key: http.method, value: GET }
69-
- { key: http.status.code, value: '200' }
69+
- { key: http.status_code, value: '200' }
7070
- { key: http.status.msg, value: OK }
7171
refs:
7272
- parentEndpoint: ""
@@ -97,7 +97,7 @@ segmentItems:
9797
- { key: coldStart, value: 'true' }
9898
- { key: http.url, value: 'http://localhost:5001/mongo' }
9999
- { key: http.method, value: GET }
100-
- { key: http.status.code, value: '200' }
100+
- { key: http.status_code, value: '200' }
101101
- { key: http.status.msg, value: OK }
102102
- operationName: /mongo
103103
operationId: 0
@@ -113,5 +113,5 @@ segmentItems:
113113
tags:
114114
- { key: http.url, value: 'http://server:5000/mongo' }
115115
- { key: http.method, value: GET }
116-
- { key: http.status.code, value: '200' }
116+
- { key: http.status_code, value: '200' }
117117
- { key: http.status.msg, value: OK }

tests/plugins/mongoose/expected.data.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ segmentItems:
8080
- { key: coldStart, value: 'true' }
8181
- { key: http.url, value: 'http://server:5000/mongoose' }
8282
- { key: http.method, value: GET }
83-
- { key: http.status.code, value: '200' }
83+
- { key: http.status_code, value: '200' }
8484
- { key: http.status.msg, value: OK }
8585
refs:
8686
- parentEndpoint: ""
@@ -111,7 +111,7 @@ segmentItems:
111111
- { key: coldStart, value: 'true' }
112112
- { key: http.url, value: 'http://localhost:5001/mongoose' }
113113
- { key: http.method, value: GET }
114-
- { key: http.status.code, value: '200' }
114+
- { key: http.status_code, value: '200' }
115115
- { key: http.status.msg, value: OK }
116116
- operationName: /mongoose
117117
operationId: 0
@@ -127,5 +127,5 @@ segmentItems:
127127
tags:
128128
- { key: http.url, value: 'http://server:5000/mongoose' }
129129
- { key: http.method, value: GET }
130-
- { key: http.status.code, value: '200' }
130+
- { key: http.status_code, value: '200' }
131131
- { key: http.status.msg, value: OK }

tests/plugins/mysql/expected.data.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ segmentItems:
5757
value: http://server:5000/mysql
5858
- key: http.method
5959
value: GET
60-
- key: http.status.code
60+
- key: http.status_code
6161
value: "200"
6262
- key: http.status.msg
6363
value: OK
@@ -93,7 +93,7 @@ segmentItems:
9393
value: http://localhost:5001/mysql
9494
- key: http.method
9595
value: GET
96-
- key: http.status.code
96+
- key: http.status_code
9797
value: "200"
9898
- key: http.status.msg
9999
value: OK
@@ -113,7 +113,7 @@ segmentItems:
113113
value: http://server:5000/mysql
114114
- key: http.method
115115
value: GET
116-
- key: http.status.code
116+
- key: http.status_code
117117
value: "200"
118118
- key: http.status.msg
119119
value: OK

tests/plugins/mysql2/expected.data.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ segmentItems:
5757
value: http://server:5000/mysql
5858
- key: http.method
5959
value: GET
60-
- key: http.status.code
60+
- key: http.status_code
6161
value: "200"
6262
- key: http.status.msg
6363
value: OK
@@ -93,7 +93,7 @@ segmentItems:
9393
value: http://localhost:5001/mysql
9494
- key: http.method
9595
value: GET
96-
- key: http.status.code
96+
- key: http.status_code
9797
value: "200"
9898
- key: http.status.msg
9999
value: OK
@@ -113,7 +113,7 @@ segmentItems:
113113
value: http://server:5000/mysql
114114
- key: http.method
115115
value: GET
116-
- key: http.status.code
116+
- key: http.status_code
117117
value: "200"
118118
- key: http.status.msg
119119
value: OK

tests/plugins/pg/expected.data.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ segmentItems:
5151
- { key: coldStart, value: 'true' }
5252
- { key: http.url, value: 'http://server:5000/postgres' }
5353
- { key: http.method, value: GET }
54-
- { key: http.status.code, value: '200' }
54+
- { key: http.status_code, value: '200' }
5555
- { key: http.status.msg, value: OK }
5656
refs:
5757
- parentEndpoint: ""
@@ -82,7 +82,7 @@ segmentItems:
8282
- { key: coldStart, value: 'true' }
8383
- { key: http.url, value: 'http://localhost:5001/postgres' }
8484
- { key: http.method, value: GET }
85-
- { key: http.status.code, value: '200' }
85+
- { key: http.status_code, value: '200' }
8686
- { key: http.status.msg, value: OK }
8787
- operationName: /postgres
8888
operationId: 0
@@ -98,5 +98,5 @@ segmentItems:
9898
tags:
9999
- { key: http.url, value: 'http://server:5000/postgres' }
100100
- { key: http.method, value: GET }
101-
- { key: http.status.code, value: '200' }
101+
- { key: http.status_code, value: '200' }
102102
- { key: http.status.msg, value: OK }

0 commit comments

Comments
 (0)