@vtex/api 6.45.21-beta.2 → 6.45.21
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.
- package/CHANGELOG.md +7 -1
- package/lib/tracing/UserLandTracer.js +4 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.45.21] - 2023-09-19
|
|
11
|
+
### Changed
|
|
12
|
+
- Fix tracingMiddleware shouldTrace decision
|
|
13
|
+
- Fix HttpClient tracing based on sampling decision
|
|
14
|
+
|
|
10
15
|
## [6.45.21-beta.2] - 2023-09-19
|
|
11
16
|
|
|
12
17
|
## [6.45.21-beta.1] - 2023-09-07
|
|
@@ -1784,11 +1789,12 @@ instead
|
|
|
1784
1789
|
- `HttpClient` now adds `'Accept-Encoding': 'gzip'` header by default.
|
|
1785
1790
|
|
|
1786
1791
|
|
|
1787
|
-
[Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.21
|
|
1792
|
+
[Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.21...HEAD
|
|
1788
1793
|
[6.45.15]: https://github.com/vtex/node-vtex-api/compare/v6.45.14...v6.45.15
|
|
1789
1794
|
[6.45.14]: https://github.com/vtex/node-vtex-api/compare/v6.45.13...v6.45.14
|
|
1790
1795
|
[6.45.13]: https://github.com/vtex/node-vtex-api/compare/v6.45.12...v6.45.13
|
|
1791
1796
|
|
|
1797
|
+
[6.45.21]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta.2...v6.45.21
|
|
1792
1798
|
[6.45.21-beta.2]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta.1...v6.45.21-beta.2
|
|
1793
1799
|
[6.45.21-beta.1]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta.0...v6.45.21-beta.1
|
|
1794
1800
|
[6.45.21-beta.0]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta...v6.45.21-beta.0
|
|
@@ -39,15 +39,14 @@ class UserLandTracer {
|
|
|
39
39
|
this.fallbackSpan = newSpan;
|
|
40
40
|
}
|
|
41
41
|
startSpan(name, options) {
|
|
42
|
-
var _a
|
|
42
|
+
var _a;
|
|
43
43
|
if (options && (options.childOf || ((_a = options.references) === null || _a === void 0 ? void 0 : _a.length))) {
|
|
44
|
-
return
|
|
44
|
+
return this.tracer.startSpan(name, options);
|
|
45
45
|
}
|
|
46
|
-
return
|
|
46
|
+
return this.tracer.startSpan(name, { ...options, childOf: this.fallbackSpan });
|
|
47
47
|
}
|
|
48
48
|
inject(spanContext, format, carrier) {
|
|
49
|
-
|
|
50
|
-
return (_a = this.tracer) === null || _a === void 0 ? void 0 : _a.inject(spanContext, format, carrier);
|
|
49
|
+
return this.tracer.inject(spanContext, format, carrier);
|
|
51
50
|
}
|
|
52
51
|
fallbackSpanContext() {
|
|
53
52
|
var _a;
|