Skip to content

Commit c277f67

Browse files
committed
profiling(node): add platform to profile_chunk envelope header
1 parent abe6ac0 commit c277f67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/profiling-node/test/integration.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,9 @@ describe('ProfilingIntegration', () => {
643643
Sentry.profiler.stopProfiler();
644644
vi.advanceTimersByTime(1000);
645645

646-
expect(transportSpy.mock.calls?.[0]?.[0]?.[1]?.[0]?.[0]?.type).toBe('profile_chunk');
646+
const envelopeHeaders = transportSpy.mock.calls?.[0]?.[0]?.[1]?.[0]?.[0];
647+
expect(envelopeHeaders?.type).toBe('profile_chunk');
648+
expect(envelopeHeaders?.platform).toBe('node');
647649
});
648650

649651
it('sets global profile context', async () => {

0 commit comments

Comments
 (0)