Skip to content

Commit

Permalink
adjust mixed transaction and standalone test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Apr 25, 2024
1 parent 9ca540b commit 082d3b0
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,16 @@ sentryTest(
expect(traceId).toMatch(/[a-f0-9]{32}/);
expect(parentSpanId).toMatch(/[a-f0-9]{16}/);

// TODO: the span envelope also needs to contain the `trace` header (follow-up PR)
expect(spanEnvelopeHeader).toEqual({
sent_at: expect.any(String),
trace: {
environment: 'production',
public_key: 'public',
sample_rate: '1',
sampled: 'true',
trace_id: traceId,
transaction: 'outer',
},
});

expect(transactionEnvelopeHeader).toEqual({
Expand Down

0 comments on commit 082d3b0

Please sign in to comment.