kezhenxu94 commented on pull request #31: URL: https://github.com/apache/skywalking-nodejs/pull/31#issuecomment-786671732
I got this from the [GitHub Actions logs](https://github.com/apache/skywalking-nodejs/pull/31/checks?check_run_id=1987759286), open the raw logs and search `console.info`, and compare with the `expected.data.yaml` in this PR ```diff @@ -33,9 +33,12 @@ segmentItems: peer: not null skipAnalysis: false tags: - - { key: http.url, value: 'http://server:5000/postgre' } - - { key: http.method, value: GET } - - { key: http.status.code, value: '200' } + - key: http.url + value: http://server:5000/postgre + - key: http.method + value: GET + - key: http.status.code + value: "200" refs: - parentEndpoint: "" networkAddress: server:5000 @@ -52,20 +55,23 @@ segmentItems: spanLayer: Database startTime: gt 0 endTime: gt 0 - componentId: 22 + componentId: 5 spanType: Exit peer: postgres:5432 skipAnalysis: false tags: - - { key: db.type, value: PostgreSQL } - - { key: db.instance, value: test } - - { key: db.statement, value: SELECT * FROM "user" where name = 'u1' } + - key: db.type + value: PostgreSQL + - key: db.instance + value: test + - key: db.statement + value: SELECT * FROM `user` WHERE `name` = "u1" - serviceName: client segmentSize: 1 segments: - segmentId: not null spans: - - operationName: /postgre + - operationName: /postgres operationId: 0 parentSpanId: -1 spanId: 0 @@ -77,10 +83,13 @@ segmentItems: peer: not null skipAnalysis: false tags: - - { key: http.url, value: 'http://localhost:5001/postgre' } - - { key: http.method, value: GET } - - { key: http.status.code, value: '200' } - - operationName: /postgre + - key: http.url + value: http://localhost:5001/postgres + - key: http.method + value: GET + - key: http.status.code + value: "200" + - operationName: /postgres operationId: 0 parentSpanId: 0 spanId: 1 @@ -92,7 +101,11 @@ segmentItems: peer: server:5000 skipAnalysis: false tags: - - { key: http.url, value: 'server:5000/postgre' } - - { key: http.method, value: GET } - - { key: http.status.code, value: '200' } - - { key: http.status.msg, value: OK } + - key: http.url + value: server:5000/postgres + - key: http.method + value: GET + - key: http.status.code + value: "200" + - key: http.status.msg + value: OK ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
