Skip to content

Commit 417a1f9

Browse files
committed
adjust mixed transaction and standalone test
1 parent 84e9c97 commit 417a1f9

File tree

1 file changed

+8
-1
lines changed
  • dev-packages/browser-integration-tests/suites/public-api/startSpan/standalone-mixed-transaction

1 file changed

+8
-1
lines changed

dev-packages/browser-integration-tests/suites/public-api/startSpan/standalone-mixed-transaction/test.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,16 @@ sentryTest(
3838
expect(traceId).toMatch(/[a-f0-9]{32}/);
3939
expect(parentSpanId).toMatch(/[a-f0-9]{16}/);
4040

41-
// TODO: the span envelope also needs to contain the `trace` header (follow-up PR)
4241
expect(spanEnvelopeHeader).toEqual({
4342
sent_at: expect.any(String),
43+
trace: {
44+
environment: 'production',
45+
public_key: 'public',
46+
sample_rate: '1',
47+
sampled: 'true',
48+
trace_id: traceId,
49+
transaction: 'outer',
50+
},
4451
});
4552

4653
expect(transactionEnvelopeHeader).toEqual({

0 commit comments

Comments
 (0)