Skip to content

Commit

Permalink
fix tag name (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyanlong authored Jun 20, 2024
1 parent 530e372 commit fa7fd65
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/Tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 4 additions & 4 deletions tests/plugins/axios/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tests/plugins/express/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tests/plugins/http/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions tests/plugins/ioredis/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down Expand Up @@ -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
Expand All @@ -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 }
6 changes: 3 additions & 3 deletions tests/plugins/mongodb/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down Expand Up @@ -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
Expand All @@ -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 }
6 changes: 3 additions & 3 deletions tests/plugins/mongoose/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down Expand Up @@ -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
Expand All @@ -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 }
6 changes: 3 additions & 3 deletions tests/plugins/mysql/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions tests/plugins/mysql2/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions tests/plugins/pg/expected.data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down Expand Up @@ -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
Expand All @@ -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 }

0 comments on commit fa7fd65

Please sign in to comment.