durable-actors-observer 0.7.10 → 0.7.11
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 +2 -0
- package/dist/TimelineZoom.d.ts +22 -0
- package/dist/index.js +1371 -1189
- package/dist/standalone/app.css +1 -1
- package/dist/standalone/app.js +25 -25
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,8 @@ The localhost-only `durable-actors dev` runtime allows observability requests wi
|
|
|
36
36
|
|
|
37
37
|
`RequestObserver` opens with a waterfall of retained method calls and WebSocket events, including inside an actor instance. Instance inspection combines identity, residency, and queue metrics in a compact header; Requests, State, and WebSockets views preserve inspection controls when switching. Calls to the same operation on the same actor instance share one row, with separate rows for method calls and WebSocket events. Each invocation has its own marker on a shared relative time axis, making interleaved methods visible together. Rows show call counts and summed durations; hover or select a marker to inspect identifiers, outcomes, queue wait, and the gap or overlap with preceding calls on that instance. Switch to Table for the tabular view. Live updates, pause, history filters, and loading older requests apply to both views.
|
|
38
38
|
|
|
39
|
+
Drag across the waterfall's time axis to zoom into a range, down to a 1 ms window. Zoom in/out and earlier/later buttons also support keyboard navigation; Reset restores the full loaded history. The chosen window stays on the same timestamps as live calls arrive or older history loads. Only calls intersecting the window are shown; durations and queue timings still describe the full invocation.
|
|
40
|
+
|
|
39
41
|
Request details open in a right-side [shadcn Drawer](https://ui.shadcn.com/docs/components/radix/drawer), powered by Vaul. Dismiss with the close button, Escape, an outside click, or a swipe to the right; focus returns to the selected invocation. The portal stays within the observer's theme scope, and long details scroll below the header.
|
|
40
42
|
|
|
41
43
|
Durations include queue wait, actor processing, and persistence. Gaps are calculated only from the calls loaded in the current view; filtered or unretained calls are not included. The waterfall uses request traces, so internal helper calls within one invocation are not separate spans. Embed `RequestTimeline` directly with `records` and an `onSelect(record, trigger)` callback when providing your own request controls.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface TimelineWindow {
|
|
2
|
+
start: number;
|
|
3
|
+
end: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const timelineTicks: number[];
|
|
6
|
+
export declare function useTimelineZoom(bounds: TimelineWindow): {
|
|
7
|
+
range: TimelineWindow;
|
|
8
|
+
zoomed: boolean;
|
|
9
|
+
setWindow: (next: TimelineWindow | null) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function TimelineZoomControls({ bounds, range, zoomed, count, onChange }: {
|
|
12
|
+
bounds: TimelineWindow;
|
|
13
|
+
range: TimelineWindow;
|
|
14
|
+
zoomed: boolean;
|
|
15
|
+
count: number;
|
|
16
|
+
onChange: (range: TimelineWindow | null) => void;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
export declare function TimelineAxis({ start, range, onChange }: {
|
|
19
|
+
start: number;
|
|
20
|
+
range: TimelineWindow;
|
|
21
|
+
onChange: (range: TimelineWindow) => void;
|
|
22
|
+
}): import("react").JSX.Element;
|