Chronicle Workbench runtime inspection
Chronicle Workbench
Inspect Chronicle from a local browser
Chronicle Workbench is the browser interface bundled with Chronicle’s development images. Use it to inspect stored events, investigate observer failures, and view read models in your local instance. You can also preview the projection behavior supported by the running image.
Workbench inspects a running Chronicle instance. Cratis Studio is a separate, optional commercial workspace where teams collaboratively model commands, events, read models, specifications, and screens. You do not need Studio to use Workbench or build with Chronicle.
Start locally
Section titled “Start locally”-
Pull and start the current development image with Chronicle available only on this machine. MongoDB remains internal to the container. Pin a released version in project-owned configuration when repeatability matters.
Terminal window docker run --pull=always --rm -d --name chronicle \-p 127.0.0.1:35000:35000 \cratis/chronicle:latest-development -
Wait for the local health endpoint to report readiness. The development image uses a self-signed certificate, so this command disables certificate verification only for this local check.
Terminal window curl --insecure --fail --retry 30 --retry-all-errors --retry-delay 1 \https://localhost:35000/healthContinue when the response prints
Healthy. -
Open
https://localhost:35000in a browser and sign in. The local access guide explains the development certificate warning and built-in administrator account. -
Select the event store and namespace you are authorized to inspect before opening their events or read-model instances.
-
Start with the observer or read model you are investigating. An observer processes events from an event sequence; its state and failed partitions help you find where processing stopped. A projection builds a read model from events, giving you a view of the resulting data.
-
Stop and remove the container when finished.
Terminal window docker rm -f chronicle
Host the standalone Workbench
Section titled “Host the standalone Workbench”The standalone Workbench host registered by UseCratisChronicleWorkbench()
uses port 9876 and listens on all interfaces by default. Unlike the Workbench
bundled with the kernel, this host has no authentication of its own. Use
localhost for local development. When exposing it beyond your machine, put
it behind a reverse proxy or authenticating gateway that restricts access.
Configure the listener in code:
using Cratis.Chronicle.Workbench;using Microsoft.AspNetCore.Builder;
public static class WorkbenchListenerConfiguration{ public static void Configure(WebApplicationBuilder builder) { builder.UseCratisChronicleWorkbench(options => { options.Address = "localhost"; options.Port = 9876; }); }}Or configure the same options in appsettings.json:
{ "Cratis": { "Chronicle": { "Workbench": { "Address": "localhost", "Port": 9876 } } }}A null or empty Address keeps the all-interface default. localhost binds
both IPv4 and IPv6 loopback. Any other value must be an IP address, such as
127.0.0.1 or ::1; hostnames and invalid values fail options validation on
startup. Port changes the standalone listener port, not the kernel’s port.
What to inspect
Section titled “What to inspect”Confirm the selected event store and namespace before interpreting read-model instances: they belong to that selection. The connected-clients view instead shows clients across the connected Chronicle cluster, regardless of the selected event store or namespace. Workbench does not combine separate Chronicle deployments.
When event processing fails, inspect the observer’s state and its recorded failed partitions. Each failed partition identifies an event source the observer stopped processing and records its attempts. The read-only grouped view organizes current failures by observer and failure kind so you can see which failures belong together. To understand a particular attempt, open its event as described below. For a projection change, use the preview behavior supported by your running image rather than assuming every projection can be previewed. A graph projection previews in memory, without a graph database, as nodes, edges and the rows of a view.
Read an observer’s sampled progress
Section titled “Read an observer’s sampled progress”The observer list shows each observer’s persisted next event sequence number and a sampled progress column. Selecting an observer shows the same sample in its summary, with the sampled end of the sequence, next, last handled and next relevant positions. Workbench reads the sample for the observers on screen and the selected one, a few at a time, and stops while the page is hidden.
Read the sample for what it is:
- The sample is the kernel watchdog’s own measurement. Its age says when it was taken, not how far behind the observer is.
- The distance counts event sequence slots between the observer’s position and the end of the sequence. Those slots can belong to event types the observer never handles, so the distance is not a count of events to process.
- Caught up is a measurement. “No sample yet”, “Sample expired” and a reason such as disconnected or replaying mean the kernel has no current measurement, which is not the same as caught up. “Unavailable” means Workbench could not read the sample.
- Failed partitions are reported separately and are not part of the sample.
- Positions Workbench cannot show exactly are shown as “Not available” rather than rounded. The persisted position and the sampled positions can differ, because they are read at different times.
For the meaning of stalled and the telemetry that publishes the same sample, see Observer settings and OpenTelemetry.
Inspect an event from a failed attempt
Section titled “Inspect an event from a failed attempt”In Failed partitions, select a partition and follow an attempt’s sequence number to inspect that exact event in the observer’s event sequence. The sequence number identifies the event’s position within that sequence. The inspector shows the selected store, namespace, sequence, and number alongside the event details. This inspector does not offer compensation, revision, or recovery actions.
Use Return to failed partitions to go back to the same scope and select the originating failure if it still exists. If you select another partition or clear the selection before the return selection finishes loading, your choice takes precedence. Missing observers, events, or failures are reported rather than replaced with a different event or partition. Event inspection accepts only whole sequence numbers from 0 through 2147483647.
If you need to retry processing after investigating the event, follow Operating Chronicle for recovery guidance.
Compare retained revisions
Section titled “Compare retained revisions”The event details for a sequence event offer Compare revisions. When the event has no retained revision history, the comparison says so instead of showing differences. The comparison is read-only: it uses only the event data already on screen, makes no extra requests, and changes nothing.
- Select an event in a sequence, then select Compare revisions.
- Pick the Left revision and Right revision. By default the original is compared with the latest retained revision, and each choice stays on the revision you picked even if later revisions arrive.
- Read the table of differences. Paths are JSON Pointers, and arrays are compared by index: removing the first array item shows every later index as changed.
For example, comparing an original of { "quantity": 1, "status": "new" }
with a revision of { "quantity": 3 } lists /quantity as Changed from 1
to 3, and /status as Removed.
Each revision shows its own raw generation. Payloads are compared as stored, with no schema transformation. A comparison reports when it cannot be trusted rather than implying that nothing changed: no retained history, redacted or erased events, content that is missing or not valid JSON, numbers that cannot be compared exactly, and content that exceeds the safety limits (262,144 characters per side, 32 levels of nesting, 5,000 values, 250 rows) are each reported explicitly. Only the history returned with the event is used; nothing is reconstructed.
Continue
Section titled “Continue”Understand Chronicle’s role before connecting an application.
ArchitectureTrace how the kernel, stores, namespaces, and subscriptions fit together.
Cratis CLIContinue inspection and diagnosis from a terminal.
Operating ChronicleDiagnose and recover failed observers and partitions.