@sentry/opentelemetry 10.73.0 → 10.75.0
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/build/cjs/{asyncContextStrategy-volGaYqZ.js → asyncContextStrategy-BJ5buq_A.js} +8 -1
- package/build/cjs/{asyncContextStrategy-volGaYqZ.js.map → asyncContextStrategy-BJ5buq_A.js.map} +1 -1
- package/build/cjs/index.browser.js +1 -1
- package/build/cjs/index.js +1 -1
- package/build/esm/{asyncContextStrategy-jD8YWNDU.js → asyncContextStrategy-Bx5F5tCX.js} +9 -2
- package/build/esm/{asyncContextStrategy-jD8YWNDU.js.map → asyncContextStrategy-Bx5F5tCX.js.map} +1 -1
- package/build/esm/index.browser.js +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/package.json +1 -1
- package/build/types/asyncContextStrategy.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1814,6 +1814,13 @@ function setOpenTelemetryContextAsyncContextStrategy(options) {
|
|
|
1814
1814
|
function withIsolationScope(callback) {
|
|
1815
1815
|
const ctx = api.context.active();
|
|
1816
1816
|
return api.context.with(ctx.setValue(SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY, true), () => {
|
|
1817
|
+
const scope = getCurrentScope();
|
|
1818
|
+
if (!core.isContinuingTrace(scope.getPropagationContext())) {
|
|
1819
|
+
scope.setPropagationContext({
|
|
1820
|
+
traceId: core.generateTraceId(),
|
|
1821
|
+
sampleRand: core._INTERNAL_safeMathRandom()
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1817
1824
|
return callback(getIsolationScope());
|
|
1818
1825
|
});
|
|
1819
1826
|
}
|
|
@@ -1889,4 +1896,4 @@ exports.withActiveSpan = withActiveSpan;
|
|
|
1889
1896
|
exports.wrapClientClass = wrapClientClass;
|
|
1890
1897
|
exports.wrapContextManagerClass = wrapContextManagerClass;
|
|
1891
1898
|
exports.wrapSamplingDecision = wrapSamplingDecision;
|
|
1892
|
-
//# sourceMappingURL=asyncContextStrategy-
|
|
1899
|
+
//# sourceMappingURL=asyncContextStrategy-BJ5buq_A.js.map
|