@shuvi/service 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,8 @@ class RouterImpl {
39
39
  const { serverRequestTrace } = req._traces;
40
40
  serverRequestTrace
41
41
  .traceChild(trace_1.SERVER_REQUEST.events.SHUVI_SERVER_HANDLE_REQUEST_START.name, {
42
+ [trace_1.SERVER_REQUEST.events.SHUVI_SERVER_HANDLE_REQUEST_START.attrs.url
43
+ .name]: req.url,
42
44
  [trace_1.SERVER_REQUEST.events.SHUVI_SERVER_HANDLE_REQUEST_START.attrs
43
45
  .requestId.name]: req._requestId
44
46
  })
@@ -90,7 +90,7 @@ class Span {
90
90
  span.stop(stopTime);
91
91
  }
92
92
  setAttribute(key, value) {
93
- this._attrs[key] = String(value);
93
+ this._attrs[key] = value;
94
94
  }
95
95
  setAttributes(attrs) {
96
96
  Object.keys(attrs).forEach(key => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/service",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -29,14 +29,14 @@
29
29
  "@babel/generator": "7.14.5",
30
30
  "@babel/parser": "7.14.7",
31
31
  "@babel/traverse": "7.14.7",
32
- "@shuvi/hook": "1.0.39",
33
- "@shuvi/router": "1.0.39",
34
- "@shuvi/runtime": "1.0.39",
35
- "@shuvi/shared": "1.0.39",
36
- "@shuvi/toolpack": "1.0.39",
37
- "@shuvi/utils": "1.0.39",
38
- "@shuvi/error-overlay": "1.0.39",
39
- "@shuvi/reporters": "1.0.39",
32
+ "@shuvi/hook": "1.0.41",
33
+ "@shuvi/router": "1.0.41",
34
+ "@shuvi/runtime": "1.0.41",
35
+ "@shuvi/shared": "1.0.41",
36
+ "@shuvi/toolpack": "1.0.41",
37
+ "@shuvi/utils": "1.0.41",
38
+ "@shuvi/error-overlay": "1.0.41",
39
+ "@shuvi/reporters": "1.0.41",
40
40
  "commander": "5.1.0",
41
41
  "comment-json": "4.2.2",
42
42
  "cross-spawn": "7.0.3",