@juice-js/observability 1.0.1-alpha.17 → 1.1.0-alpha.20

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 CHANGED
@@ -59,8 +59,9 @@ like juice-layout's dark-mode toggle) repaints the charts and the graph.
59
59
  - `auditLink` (optional): a link from a trace to its audit records, shown on the trace page as "Audit records ↗".
60
60
  With `@juice-js/audit` mounted at `/audit`: `auditLink: id => ['/audit/traces', id]`. A string is an external URL.
61
61
  Without it, the trace page shows no link.
62
- - The trace page's resource usage reads .NET's `System.Runtime` meter (.NET 9+): add `AddMeter("System.Runtime")` to the
63
- host's `WithMetrics`.
62
+ - The trace page's resource usage and a service's Capacity tab read .NET's `System.Runtime` meter (.NET 9+): add
63
+ `AddMeter("System.Runtime")` to the host's `WithMetrics`. If traces are sampled, also add `AddAspNetCoreInstrumentation()`
64
+ there: the Capacity tab then counts requests from `http.server.request.duration`, not from spans, which undercount.
64
65
  - The router needs `bindToComponentInputs: true`. The pages take their route and query parameters as inputs.
65
66
  - The host's bearer-token interceptor (`@juice-js/auth`) must cover `apiBase`. The token carries the `platform_tenant`
66
67
  claim and a platform role (`viewer`, `operator` or `admin`).