Skip to content

Commit 78023e3

Browse files
committed
extract client
1 parent 8e43a3f commit 78023e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/tracing/trace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ export const continueTrace = <V>(
217217

218218
const { sentryTrace, baggage } = options;
219219

220+
const client = getClient();
220221
const incomingDsc = baggageHeaderToDynamicSamplingContext(baggage);
221-
222-
if (!shouldContinueTrace(getClient(), incomingDsc?.org_id)) {
222+
if (client && !shouldContinueTrace(client, incomingDsc?.org_id)) {
223223
return startNewTrace(callback);
224224
}
225225

0 commit comments

Comments
 (0)