Implementation:Microsoft Playwright TraceV5
Overview
TraceV5 defines the type schema for version 5 of the Playwright trace file format, continuing the evolution from V4 with refined event types and metadata.
Description
Version 5 of the trace format maintains the same base types as V4 (Language, Point, Size, SerializedValue with BigInt/Map/Set support) and refines the trace event schema. The format continues to use JSON-lines within ZIP archives for trace data storage.
Usage
Used by the trace viewer for parsing V5 format trace files.
Code Reference
Source Location
packages/playwright-core/src/utils/isomorphic/trace/versions/traceV5.ts (225 lines)
Key Types
type Language = 'javascript' | 'python' | 'java' | 'csharp' | 'jsonl';
type Point = { x: number; y: number };
type Size = { width: number; height: number };
type StackFrame = { file: string; line: number; column: number; function?: string };
Import
import type * as traceV5 from '../utils/isomorphic/trace/versions/traceV5';
I/O Contract
Data Format
- JSON-lines within ZIP archives
- Typed events with discriminator fields
- HAR-based resource snapshots
Related Pages
- Microsoft_Playwright_TraceV4 -- Previous version
- Microsoft_Playwright_TraceV6 -- Next version