@sentry/opentelemetry 8.41.0-beta.0 → 8.41.0-beta.1
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/esm/index.js
CHANGED
|
@@ -1043,8 +1043,9 @@ function ensureTimestampInMilliseconds(timestamp) {
|
|
|
1043
1043
|
|
|
1044
1044
|
function getContext(scope, forceTransaction) {
|
|
1045
1045
|
const ctx = getContextForScope(scope);
|
|
1046
|
+
// Note: If the context is the ROOT_CONTEXT, no scope is attached
|
|
1047
|
+
// Thus we will not use the propagation context in this case, which is desired
|
|
1046
1048
|
const actualScope = _optionalChain$5([getScopesFromContext, 'call', _ => _(ctx), 'optionalAccess', _2 => _2.scope]);
|
|
1047
|
-
|
|
1048
1049
|
const parentSpan = trace.getSpan(ctx);
|
|
1049
1050
|
|
|
1050
1051
|
// In the case that we have no parent span, we need to "simulate" one to ensure the propagation context is correct
|