@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.
@@ -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-volGaYqZ.js.map
1899
+ //# sourceMappingURL=asyncContextStrategy-BJ5buq_A.js.map