
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
playwright-opentelemetry
Advanced tools
A reporter for Playwright that can export traces and spans in opentelemetry format.
Trace your Playwright tests across the entire stack.
A Playwright reporter and fixture that record each test attempt as OpenTelemetry spans, capture the browser activity around it, and propagate W3C trace context (traceparent) from browser requests into your instrumented backend. The result is one connected trace, rooted at a named test, reaching from the Playwright step through the browser request into every instrumented service the user journey touched.

Playwright test
-> test step
-> browser request + traceparent
-> application request
-> service call
-> database query
playwright.test span, with steps, hooks, fixtures, and actions as child playwright.test.step spans.request fixture activity, worker fetch activity, console messages, and uncaught page errors under a playwright-browser service, and injects the traceparent header that makes backend spans children of the test.npm install --save-dev playwright-opentelemetry
// playwright.config.ts
import { defineConfig } from "@playwright/test";
import type {
PlaywrightOpentelemetryConfig,
PlaywrightOpentelemetryUseOptions,
} from "playwright-opentelemetry/fixture";
const playwrightOpentelemetry: PlaywrightOpentelemetryConfig = {
// Send to any OTLP destination, or set OTEL_EXPORTER_OTLP_ENDPOINT
otlpEndpoint: {
url: "https://api.eu1.honeycomb.io/v1/traces",
headers: { "x-honeycomb-team": "your-api-key" },
},
// Or write a local OpenTelemetry trace ZIP instead of, or alongside, OTLP.
storeTraceZip: true,
};
export default defineConfig<PlaywrightOpentelemetryUseOptions>({
reporter: [["playwright-opentelemetry/reporter"]],
use: {
playwrightOpentelemetry,
// Screenshots come from Playwright's retained trace.
trace: "retain-on-failure",
},
});
Switch your tests to the instrumented fixture:
import { expect } from "@playwright/test";
import { test } from "playwright-opentelemetry/fixture";
test("has title", async ({ page }) => {
await page.goto("https://playwright.dev/");
await expect(page).toHaveTitle(/Playwright/);
});
View the resulting trace in the hosted trace viewer, or locally:
npx @playwright-opentelemetry/trace-viewer
Full documentation, including trace retention options, screenshot capture, multiple OTLP destinations, output formats, and the self-hostable Trace API, lives in the project README.
pnpm dev starts a dev server that outputs dist/index.mjspnpm build otherwise creates a one-off compiled buildpnpm test:e2e uses the compiled reporter outputApache-2.0, built by Endform.
Document load spans (browser.page) carry browser.page.navigation.index,
starting at 0 and increasing for each document span within the same Playwright
page (browser.page.id). Page IDs are generated by the reporter, starting at
page-0 for each test tracker. Reloads also advance the document index.
SPA navigation spans (browser.route) carry only their local
browser.route.navigation.index; the document index stays on the parent span.
The route index starts at 0 and resets on each document load. Ignored URL updates,
such as hash-only changes, do not advance it. Each Playwright page has independent
counters.
FAQs
A reporter for Playwright that can export traces and spans in opentelemetry format.
The npm package playwright-opentelemetry receives a total of 69 weekly downloads. As such, playwright-opentelemetry popularity was classified as not popular.
We found that playwright-opentelemetry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.