@playwright-opentelemetry/trace-viewer 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/assets/index-VPohpWaW.js +12 -0
- package/dist/assets/index-ZxNTGcsl.css +2 -0
- package/dist/index.html +2 -2
- package/dist/sw.js +2 -1
- package/package.json +24 -18
- package/dist/assets/index-BOOvGlP8.js +0 -14
- package/dist/assets/index-CKa3IAGr.css +0 -1
package/README.md
CHANGED
|
@@ -14,6 +14,14 @@ To boot the trace viewer on `localhost:9294`:
|
|
|
14
14
|
npx @playwright-opentelemetry/trace-viewer
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
The viewer can load a local trace zip or a trace-specific API base URL such as `/playwright-otel-trace-viewer/v1/{traceId}`. Remote API loading fetches `{baseUrl}/traces` once for the merged OTLP export, derives test metadata from the root `playwright.test` span, then fetches `{baseUrl}/screenshots` for screenshot metadata.
|
|
18
|
+
|
|
19
|
+
The remote API contract is:
|
|
20
|
+
|
|
21
|
+
- `GET {baseUrl}/traces` returns `{ "resourceSpans": [...] }` or `404` when the trace does not exist
|
|
22
|
+
- `GET {baseUrl}/screenshots` returns `{ "screenshots": [{ "timestamp": 1766929201038, "file": "page@xxxbbb-1766929201038.jpeg" }] }`, or `{ "screenshots": [] }` when there are no screenshots
|
|
23
|
+
- `GET {baseUrl}/screenshots/{filename}` returns the screenshot image bytes or `404` when missing
|
|
24
|
+
|
|
17
25
|
## Deploy Your Own
|
|
18
26
|
|
|
19
27
|
### Cloudflare
|