@playwright-opentelemetry/trace-viewer 0.6.2 → 0.7.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 +10 -0
- package/dist/assets/index-DZ8iXPiI.js +13 -0
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/index-Bxnp6nkA.js +0 -13
package/README.md
CHANGED
|
@@ -16,6 +16,16 @@ npx @playwright-opentelemetry/trace-viewer
|
|
|
16
16
|
|
|
17
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
|
+
If the viewer URL includes `traceToken`, the token is propagated to remote Trace API requests as a query parameter:
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
https://trace.endform.dev/?traceSource=https%3A%2F%2Fexample.com%2Fplaywright-otel-trace-viewer%2Fv1%2F{traceId}&traceToken={token}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This loads `{baseUrl}/traces?traceToken={token}` and `{baseUrl}/screenshots.zip?traceToken={token}`.
|
|
26
|
+
|
|
27
|
+
The token can also be embedded in the `traceSource` URL, or in a Trace API URL entered in the load form. The viewer normalizes those forms back to the canonical top-level `traceToken` query parameter.
|
|
28
|
+
|
|
19
29
|
The remote API contract is:
|
|
20
30
|
|
|
21
31
|
- `GET {baseUrl}/traces` returns `{ "resourceSpans": [...] }` or `404` when the trace does not exist
|