Artillery automatically records Playwright traces for a subset of failing VUs in a test.
To enable it, set trace: true in your Playwright config:
trace: true
config: target: "https://example.com" engines: playwright: trace: true
See docs for details