Called once before all tests. Initializes the OTel provider.
Full Playwright config
Root test suite
Called once after all tests. Shuts down the OTel provider, flushing spans.
The full test run result
Called when a test step begins (hooks, fixtures, user steps, pw:api calls).
The parent test case
The test result
The step that began
Called when a test step ends.
The parent test case
The test result
The step that ended
Called when a test begins execution.
The test case
The test result (incomplete at this point)
Called when a test ends. Closes the test-level span.
The test case
The final test result
Whether this reporter prints to stdout. Returns false — OTel uses network export.
Playwright Reporter that emits OpenTelemetry spans for test lifecycle events.
Example