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