Skip to content

Commit a1d5dd3

Browse files
author
Luca Forstner
committed
test fix
1 parent 1fbbf82 commit a1d5dd3

File tree

3 files changed

+3
-0
lines changed
  • dev-packages
    • browser-integration-tests/suites/public-api/startSpan/parallel-root-spans-with-parentSpanId
    • node-integration-tests/suites/public-api/startSpan

3 files changed

+3
-0
lines changed

dev-packages/browser-integration-tests/suites/public-api/startSpan/parallel-root-spans-with-parentSpanId/subject.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Sentry.getCurrentScope().setPropagationContext({
22
parentSpanId: '1234567890123456',
33
traceId: '12345678901234567890123456789012',
4+
sampleRand: Math.random(),
45
});
56

67
Sentry.startSpan({ name: 'test_span_1' }, () => undefined);

dev-packages/node-integration-tests/suites/public-api/startSpan/parallel-root-spans/scenario.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Sentry.init({
1111
Sentry.getCurrentScope().setPropagationContext({
1212
parentSpanId: '1234567890123456',
1313
traceId: '12345678901234567890123456789012',
14+
sampleRand: Math.random(),
1415
});
1516

1617
const spanIdTraceId = Sentry.startSpan(

dev-packages/node-integration-tests/suites/public-api/startSpan/parallel-spans-in-scope-with-parentSpanId/scenario.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Sentry.withScope(scope => {
1212
scope.setPropagationContext({
1313
parentSpanId: '1234567890123456',
1414
traceId: '12345678901234567890123456789012',
15+
sampleRand: Math.random(),
1516
});
1617

1718
const spanIdTraceId = Sentry.startSpan(

0 commit comments

Comments
 (0)