@vtex/api 6.45.20 → 6.45.21-beta
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
CHANGED
|
@@ -7,6 +7,8 @@ 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-beta] - 2023-09-04
|
|
11
|
+
|
|
10
12
|
## [6.45.20] - 2023-08-30
|
|
11
13
|
### Changed
|
|
12
14
|
- Remove sampling decision from runtime
|
|
@@ -1776,10 +1778,11 @@ instead
|
|
|
1776
1778
|
- `HttpClient` now adds `'Accept-Encoding': 'gzip'` header by default.
|
|
1777
1779
|
|
|
1778
1780
|
|
|
1779
|
-
[Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.
|
|
1781
|
+
[Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta...HEAD
|
|
1780
1782
|
[6.45.15]: https://github.com/vtex/node-vtex-api/compare/v6.45.14...v6.45.15
|
|
1781
1783
|
[6.45.14]: https://github.com/vtex/node-vtex-api/compare/v6.45.13...v6.45.14
|
|
1782
1784
|
[6.45.13]: https://github.com/vtex/node-vtex-api/compare/v6.45.12...v6.45.13
|
|
1783
1785
|
|
|
1786
|
+
[6.45.21-beta]: https://github.com/vtex/node-vtex-api/compare/v6.45.20...v6.45.21-beta
|
|
1784
1787
|
[6.45.20]: https://github.com/vtex/node-vtex-api/compare/v6.45.20-beta...v6.45.20
|
|
1785
1788
|
[6.45.20-beta]: https://github.com/vtex/node-vtex-api/compare/v6.45.19...v6.45.20-beta
|
|
@@ -118,6 +118,10 @@ exports.traceUserLandRemainingPipelineMiddleware = () => {
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
function shouldTrace(ctx, rootSpan) {
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
var _a, _b, _c;
|
|
122
|
+
/** Should trace if path isnt blacklisted and sampling decision came from the edge
|
|
123
|
+
* ((rootSpan as any).isSampled. returns whether or not this span context was sampled
|
|
124
|
+
* There is a cast to bypass opentracing typescript
|
|
125
|
+
*/
|
|
126
|
+
return !PATHS_BLACKLISTED_FOR_TRACING.includes(ctx.request.path) && ((_c = (_b = (_a = rootSpan).isSampled) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : false);
|
|
123
127
|
}
|