@playwright-opentelemetry/trace-viewer 0.5.0 → 0.6.1
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 +4 -3
- package/dist/assets/index-dJ2mn4SN.js +12 -0
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +2 -2
- package/dist/assets/index-VPohpWaW.js +0 -12
package/README.md
CHANGED
|
@@ -14,13 +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
|
|
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 downloads `{baseUrl}/screenshots.zip` into the service worker when screenshots are needed.
|
|
18
18
|
|
|
19
19
|
The remote API contract is:
|
|
20
20
|
|
|
21
21
|
- `GET {baseUrl}/traces` returns `{ "resourceSpans": [...] }` or `404` when the trace does not exist
|
|
22
|
-
- `GET {baseUrl}/screenshots` returns
|
|
23
|
-
|
|
22
|
+
- `GET {baseUrl}/screenshots.zip` returns a ZIP with root `manifest.json` and `screenshots/*`, or `404` when there are no screenshots
|
|
23
|
+
|
|
24
|
+
The service worker exposes internal per-screenshot URLs to the viewer after loading the ZIP.
|
|
24
25
|
|
|
25
26
|
## Deploy Your Own
|
|
26
27
|
|