Skip to content

Fix API request tracing target - #166

Merged
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:fix/request-tracing
Sep 8, 2026
Merged

Fix API request tracing target#166
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:fix/request-tracing

Conversation

@smnandre

@smnandre smnandre commented Sep 8, 2026

Copy link
Copy Markdown
Member

API request contexts associated with a browser were using the browser's tracer. Since Playwright 1.63 separates these tracers, API HAR recording produced empty files despite successful requests.

Route API tracing operations to browserContext.request.tracing, preserving browser and standalone API tracing.

Add regression coverage for HAR recording, trace groups and chunks, and tracing target propagation.

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@smnandre smnandre added the bug Something isn't working label Sep 8, 2026
@smnandre
smnandre merged commit df7f988 into playwright-php:main Sep 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant