Skip to content

Wolverine.CritterWatch ​

Wolverine.CritterWatch is the NuGet package you install in each service you want CritterWatch to monitor. It plugs into the Wolverine runtime, publishes telemetry to the console, and handles the operator commands the console sends back.

This section is the integration reference — what to install, how to register it, and what to expect at runtime.

What it does ​

Once registered:

  • Publishes telemetry in batches, every 2 seconds by default. Node lifecycle, agent assignments, endpoint health, persistence counts, projection shard state — batched and sent over your existing Wolverine transport. A service with many tenants, databases or endpoints backs off automatically, up to once a minute. A separate heartbeat goes out every 30 seconds.
  • Handles inbound commands. Replay DLQ messages, pause listeners, rebuild projections, add tenants, and the rest of the command set. The handlers are registered automatically — you don't write them.
  • Probes agent health every 60 seconds. Catches silent agent failures that don't fire reactive callbacks. A result is sent when it changes, and restated every five minutes.
  • Answers the console's explorers. Event Store, Document Store and SQL reads, the projection stepper, saga lookups and the Event Model all run on the service against its own stores, so the console never holds your database credentials.
  • Reports your service's capabilities. Registered handlers, endpoints, message stores, event stores, multi-tenancy mode — what CritterWatch needs to render the service's pages.

What it costs ​

The runtime impact is negligible:

  • Hot-path overhead per event: a single lock-free queue push. No serialization, no I/O.
  • Publish overhead: one batched message per publish interval (2 seconds by default), regardless of event volume. A batch too large for the broker is divided into several, under MaxPushWireBytes (192 KiB by default), and so is one too large for the console to decompress, under MaxPushRawBytes (12 MiB by default).
  • Memory: a small ring buffer of pending changes plus a snapshot of current endpoint / shard state. Single-digit megabytes.
  • No new database connections. Reuses your existing Wolverine transport.
  • No new ports. Same transport in, same transport out.

What it doesn't change ​

  • Your handlers, aggregates, and domain code stay the same. No annotations, no base classes, no decorators.
  • No schema changes. Adding the package never adds tables to your application's database. The one exception is opt-in: declaring a stream compaction policy turns on Wolverine's recurring-message feature, which provisions its tracking table.
  • No additional processes. It runs in your existing service process.

Pages in this section ​

  • Registration — installing and registering it in your service.
  • Inbound Commands — every command the console can send, with the C# record signatures and minimal call examples.
  • Outbound Events — what the service publishes back. Useful when you want to consume the same telemetry from your own infrastructure.
  • Observer & Telemetry — what gets reported, on what cadence, and what to do when telemetry stops flowing.
  • Stream Compaction Policies — declaring scheduled compaction of long event streams.

License ​

CritterWatch has two distinct licenses that govern different pieces. This page is about the monitored-side library; the console is governed separately.

PieceLicenseWhere it runs
Wolverine.CritterWatch (this package)MIT — no license key requiredIn every service you monitor
CritterWatch console (CritterWatch, CritterWatch.SqlServer or CritterWatch.Sqlite)Free / Professional / Enterprise tier — see LicensingThe dedicated console process, or embedded in your application

Wolverine.CritterWatch ships under the MIT license. You can install it in any production service regardless of which console tier you run — monitoring needs no license key on the monitored side, and the library doesn't reach back to the console to validate anything before publishing telemetry.

Some operator commands (DLQ replay, projection rebuild, tenant operations, etc.) ARE gated on the console's license tier. When an operator clicks one of those buttons:

  • The console's tier check runs first; if the tier doesn't cover the action, the UI button stays disabled and the console refuses the command with a CommandRejected.
  • If the console allows it, the command travels over your transport into your monitored service.
  • The matching handler on the monitored side calls LicenseGuard.IsOperationAllowed() and throws LicenseRequiredException if the per-action gate is closed — defense-in-depth so a misconfigured console can't bypass tier enforcement at the bus level.

So a service where operators will run those actions needs the license key too, as JasperFx:LicenseKey in its configuration or the JASPERFX__LICENSEKEY environment variable. A key only on the console leaves every replay, pause or rebuild failing on the service that was asked to perform it. Under .NET Aspire, WithCritterWatch(console) or WithJasperFxLicense() hands the key on. See License Configuration.

The MIT license on the library and the tier model on the console are two independent surfaces. Embedding Wolverine.CritterWatch in a service doesn't subject that service to the console's tier terms, and standing up a Professional / Enterprise console doesn't change what shipping Wolverine.CritterWatch to your customers means for them.