Skip to content

Dead Letter Queue ​

The Dead Letter Queue (DLQ) explorer is one of CritterWatch's most powerful operational tools. It provides a unified view of failed messages across all services and their durability databases, with the ability to replay, discard, or edit-and-replay individual messages or batches.

CritterWatch Dead Letter Queue — filterable summary of failed messages across services and databases, with replay and discard actions

CritterWatch manages the durable (database) DLQ only

The explorer reads from each service's Wolverine durability database — not from broker-native dead-letter queues. Messages that dead-letter natively at the broker (Amazon SQS DLQ, Azure Service Bus $DeadLetterQueue, RabbitMQ DLX) won't appear here until they're forwarded into the Wolverine database. If your services use native DLQs, see Native DLQs and CritterWatch management for how to bridge them.

Querying Dead Letters ​

A banner at the top tracks the fleet-wide total ("6,383 total dead letter(s) across all services"), and a chip shows when the page is scoped to the header's selected service. Below the filters, a DLQ Trend mini bar chart plots that total each time the page loads or auto-refreshes. The Filters card narrows everything below it:

FilterDescription
DatabaseScope to one durability database (multi-store / multi-tenant services expose several)
Message TypeFilter by the .NET type name of the message
Exception TypeFilter by the exception class that caused the failure
Exception Message (exact)The whole exception message, matched exactly. That is what the server applies, so the list and a bulk action agree; a substring match waits on wolverine#5209
HeaderAn envelope header that must match exactly, name and value. recurring-schedule = a schedule's name finds that schedule's occurrences. Needs Wolverine 6.52 on the service; one that is older ignores it, and the page names it in a warning above the results. The filter is kept in the URL (?headerName=&headerValue=), which is how a recurring schedule's page links to its own dead letters
Received OnScope to the endpoint the message was received on (an endpoint URI, not a time)
Time RangeAll · Last Hour · Last 24h · Last 7 Days · Custom, by when the message failed. See Time ranges. A custom range is in the display time zone
TenantNarrows the loaded messages to one tenant, in the browser. It does not yet scope a query or a bulk action on the server (wolverine#5209); see Multi-tenant DLQ

(Service scope comes from the global service selector in the header.) Message Type, Exception Type and Database are kept in the URL with ?service=, so a link lands ready to triage; a link that names both a service and a database runs the message query on arrival.

Time ranges ​

A time range means when the dead letter failed, not when the message was sent. A message read again from a broker topic can have a sent time days older than its failure, so "the last 24 hours" on the sent time would miss a failure from a minute ago. The summary, the Messages tab, Failure Groups and every action on them read the same time, so an action touches the messages the page counted. Replaying a message that fails again moves its failure time forward. A dead letter recorded before Wolverine kept a failure time is ranged on its sent time.

A service running a Wolverine.CritterWatch older than 1.2 can only range on the sent time. While a range is set, a warning above the results names those services. Their rows, their share of a Failure Groups read and their share of any action all use the sent time, so a message they sent before the range and failed inside it is neither listed nor acted on. Upgrading the package on the service removes the warning.

Replay All Matching and Discard All Matching act on exactly the set their confirmation counts. The counts come from the summary, scoped to the selected time range and endpoint, the same query the action sends. So the two are off while a filter the summary cannot count is set, with the reason on the button:

  • a Header filter: the summary cannot see headers, and a service too old to apply the filter would act on every message of the other filters;
  • an Exception Message filter: the summary cannot see message text;
  • a Tenant filter with no Database: the server cannot yet scope a bulk action to a tenant, so it would act on every tenant.

Select the messages and act on those instead: that is exact either way.

Results render in four tabs: Summary — grouped counts per service / database / message type / exception type / endpoint, loaded automatically — Messages — individual envelopes, loaded on demand: click a summary row or press Query Messages in the toolbar — Failure Groups, the dead letters grouped by failure across the fleet, and Operations, the recent replays, discards, edits, archives and restores. A Group by exception toggle collapses the message list by exception type, and Export CSV / Export JSON download the loaded messages. Auto-refresh (every 5, 10, 30 or 60 seconds) and Refresh Summaries controls sit in the toolbar.

Result Table ​

Each row in the Messages tab shows:

ColumnDescription
Message TypeThe .NET type name of the failed message
Exception TypeThe exception class that caused failure
Exception MessageThe exception's message, truncated; hover for the whole text
SourceThe endpoint the message was sent from
TenantThe envelope's tenant, or —
Received OnThe endpoint the message was received on
AttemptsHow many times Wolverine attempted processing
Failed AtWhen it was dead-lettered, or last failed after a replay. This is what the time range reads. Under it is when the message was sent, which can be long before it failed. A dead letter recorded before Wolverine kept a failure time shows only the sent time
ReplayableWhether the store marks it replayable

The list is paged by the server (10, 25, 50 or 100 per page). Each row's Actions menu offers View, which opens the Message Detail panel, Replay and Discard; with Group by exception on, a row offers View and Replay.

Message Detail ​

The detail panel shows the envelope:

  • Envelope fields — id, message type, content type, source, the endpoint it was received on, sent time, whether it is replayable, handler and send attempts, and, where present, tenant, correlation, conversation and saga ids
  • Conversation — a link to this message's conversation, while its hops are retained. The console looks the message id up when the panel opens, and links the conversation it finds. When the hops have aged out it says so; when the lookup itself failed it says it could not check, which is not the same claim.
  • Exception details — the exception type and message, with the stack trace from the envelope's exception-stack header when there is one
  • Message body — formatted JSON of the payload, or the raw Base64 data when it cannot be decoded
  • Replay history — how many times the message has been replayed and failed again, when it last was, and when it first failed. Recorded by the service's store from Wolverine 6.54; a service or a dead letter older than that shows Not recorded by this service's store, which means unknown, not "never replayed".

Actions ​

From the detail panel, you can:

Replay — send the message back through the original processing pipeline without modification. The message is removed from the DLQ and re-enqueued for delivery. Offered only for a message the store marks replayable.

Edit & Replay — opens a JSON editor pre-populated with the message body (offered when the body could be shown as JSON). Modify the payload (correcting data errors, fixing missing fields, etc.) and click Save & Replay, then confirm. The dead letter is updated in place with the edited body and marked replayable, and the service's durability agent then moves it back to its incoming queue; nothing is discarded. It needs the dlq.edit capability as well as dlq.replay (RBAC).

Discard — permanently delete the message from the DLQ. This is irreversible and requires confirmation.

Edit and Replay Use Cases

Edit-and-replay is most useful when a message failed due to data issues rather than code bugs:

  • A required field was null that has since been populated
  • A numeric value exceeded a validation range that has been corrected
  • An external ID changed between when the message was sent and when it was processed

Batch Operations ​

Four bulk actions sit above the result tabs:

Replay All Matching / Discard All Matching — apply to every message matching the current filters, whether or not it is loaded into the Messages tab. Each is sent as one operation: for the selected service, or, with none selected, fanned out by the console to every service it monitors. Both ask for confirmation, quoting the count of what they will touch; discard is irreversible.

The four actions that work on a query (both All Matching buttons, and a summary row's Replay All / Discard All) ask for an optional reason in their confirmation. It is recorded on the operation's audit row and shown when you expand the operation in the Operations tab.

Replay Selected / Discard Selected — apply to the rows ticked in the Messages tab (enabled once at least one row is selected).

Summary rows also carry per-group Replay All / Discard All actions, so a whole exception or message-type bucket can be replayed without loading its envelopes. A row is one message type, exception type and endpoint, and its action is scoped to exactly that, within the selected time range.

Selected messages, and an Edit & Replay, are sent only to the service that holds them. Every one of these actions is recorded in the Audit Log.

Failure Groups ​

The Failure Groups tab shows dead letters as groups of the same failure, across every service and every message database at once. The console reads each service and merges the answers itself, so a group that spans four services and twelve tenant databases is one row.

Group by chooses how dead letters are grouped, and the page remembers your choice in this browser:

GroupingA group is
Failure group (default)The same exception thrown from the same place, as Wolverine fingerprints it
Message typeOne message type
EndpointThe endpoint the messages were received at
Exception typeOne exception type, wherever it was thrown

Each row has the group's title, its exception (for failure groups), the count, the first and last failure, the services it spans, and how many databases. Every column but Services sorts. The tab follows the page's service selection and time range.

Click a group to see its dead letters. The Messages tab opens filtered to that group. Under the Failure group grouping, a Failure group tag shows the filter, and the selection, replay, discard and export there all work on it. The filter is in the page's URL (?failureGroup=), so a link to a group can be shared. Replay All Matching and Discard All Matching are unavailable while a failure group is the filter, because they would not be limited to the group: select the group's messages instead. The other groupings set the ordinary Message Type, Exception Type or Received On filter.

  • Older dead letters, and older clients, are grouped by exception type. A dead letter recorded before Wolverine 6.54 has no fingerprint, so it is grouped by its exception type and tagged by exception. A service whose Wolverine.CritterWatch client is older than 1.1 cannot fingerprint at all: the console reads it the 1.0 way, groups its dead letters by exception type, and a notice names those services. Its exception-type groups merge with the same exception's older dead letters from newer services.
  • A partial read says so. When a database does not answer, a banner names the service and how many of its databases answered, and the counts are a floor, not a total.
  • The tab re-reads itself when a replay, discard or edit reports back.

Acting on a group ​

Each group's Actions menu runs one operation on every dead letter in the group:

ActionWhat it doesNeeds
Replay groupPuts them back on the wire to be handled againdlq.replay
Archive groupTakes them out of the queue and its counts, keeping them, restorabledlq.archive
Discard groupDeletes them permanentlydlq.discard
Restore group(Archived view) Puts archived dead letters back in the queuedlq.archive
  • A reason is required, and recorded on the audit row and in the Operations tab.
  • It is one operation. A group in one service is sent to that service; a group spread across several is sent fleet-wide, scoped by the group, and the console decides per service what it can be sent. A service on a Wolverine.CritterWatch client older than 1.1 is asked by exception type for an "unfingerprinted" group, and skipped for a fingerprinted one (it has none of its dead letters, and would ignore the filter). Archive and restore are offered only when at least one of the group's services can archive; a database whose store cannot answers its share with an error.
  • One operation per failure group at a time. Under the Failure group grouping, a second operation on a group that has one running is refused, with a pointer to the running one. Cancel it, or wait.
  • Archived shows the archived dead letters instead of the live queue, grouped the same way. Archive keeps a group's dead letters out of the counts, the alerts' DLQ rates and the Summary tab until you restore it.

Notes ​

The pencil on a group writes a note for the next operator: the ticket, the cause, "safe to replay after 2.4.1". A note belongs to the group's key, so it stays when the group is replayed and its dead letters come back, and an edit keeps the text it replaced. Saving an empty note clears it. Notes need dlq.note and are audited.

Explaining a group with AI ​

On a console with LLM triage set up, a failure group has an Explain these failures action (the wand in its row). The console reads a few of the group's dead letters from its services, asks the model what they have in common, and shows the answer under the group:

  • a one-line summary and the probable cause,
  • a classification: Transient (likely to succeed if retried later), Permanent (will fail again unchanged) or Unclear, with the evidence for it,
  • a suggested next step: replay, discard, fix first, or investigate.

The panel is labelled AI assessment — suggestion only, not a diagnosis, with the model, when it answered and who asked. A suggested replay or discard marks the group's existing action in its Actions menu with a suggested tag; it adds no button, and nothing is replayed or discarded until an operator chooses to, with the usual capability. The mark goes once the group changes.

  • It runs only when someone asks. Nothing explains a group on its own. Asking needs dlq.triage on every one of the group's services (it is refused, naming them, where you lack it), needs a license, and is audited (DeadLetterGroup.Explain).
  • Asking again reuses the stored answer while the group is unchanged, for 24 hours by default, so a second click costs nothing. Once dead letters join or leave the group the answer is marked as out of date, and asking again pays for a new one.
  • What is sent to the model provider: the group's title, size and time span, and up to five of its dead letters: how those spread across message types, endpoints, tenants and services, and for each one its exception type and message, Wolverine's own headers with their values, any other header by name only, and the generated handler code where the service supplies it. Message bodies are not sent unless the console sets IncludeMessageBodies. See Explaining a dead-letter group for the settings.
  • Only failure groups can be explained, not the other groupings or the Archived view.
  • An answer that does not come back is reported: a request over the AI budget, or one the model cannot answer in the required shape, shows the reason in place of the panel, and one with no answer at all gives up after ten minutes.

For agents and scripts ​

  • The same read is GET /api/critterwatch/dlq/groups (grouping, service, from, to, tenant, messageType, exceptionType, and archived=true for the archived view; all optional).
  • Over MCP, summarize_dead_letter_groups reads the groups (archived: true for the archived view; mcp.dlq.read), and replay_dead_letter_group, archive_dead_letter_group, restore_dead_letter_group and discard_dead_letter_group act on one, each with a required reason and the same capability as the console's action. set_dead_letter_group_note writes a group's note, as the pencil does (dlq.note), and summarize_dead_letter_groups shows each group's note to an agent before it acts.

Operations ​

The Operations tab lists the 25 most recent replays, discards, edits, archives and restores, newest first, from this page and from agents over MCP alike. Each row is one operation, followed until every database it touched has answered:

ColumnWhat it says
StartedWhen the console relayed it
ActionReplay, Discard, Edit & Replay, Archive or Restore
ScopeThe service, or All services, and the filter or the number of selected messages
ByWho ran it, and the channel: Console or MCP
ProgressHow many of the announced databases have answered, for example 4 of 6 databases; Waiting on the services until the first announcement arrives
AffectedHow many dead letters it replayed or discarded, where the store reports it; otherwise not reported, never 0. An Edit & Replay always reads not reported
StatusRunning, Completed, Completed with failures, Cancelled, or Unconfirmed

Expand a row for the reason given, each service's share (databases announced, answered, failed and affected), and every database that failed with its error.

  • Cancel stops a running operation's databases that have not started yet. Each database runs one statement, so the ones already running finish; the rest answer "cancelled" and do nothing, and the operation settles as Cancelled. A service on a client older than 1.1 cannot cancel, and runs its share to the end. Cancelling needs the capability starting it needed.

  • Check re-failures, on a finished replay of a failure group, counts the group's dead letters that were replayed and failed again since it started (Wolverine 6.54 replay history). A large group is read up to 500 per service and reported as "at least". The same read is GET /api/critterwatch/dlq/operations/{id}/refailures.

  • Each service announces its databases first, then each database answers. A fleet-wide discard over a multi-tenant service therefore settles only when every tenant database has reported back.

  • A failure is reported, not retried. A database whose replay or discard throws answers with the error, and the others carry on. Run the operation again to retry it.

  • Unconfirmed is not failed. An unsettled operation that the console has heard nothing about for ten minutes, neither an announcement nor an answer, reads Unconfirmed. A service on a Wolverine.CritterWatch client older than 1.1 runs the operation but never reports back, so the console can only say it was not told. Check the service's dead letters to see what happened.

  • The tab's badge counts the operations still running. The list re-reads itself as answers arrive, and every 10 seconds while anything is running; the Summary and Messages tabs refresh when a database answers.

  • The same history is GET /api/critterwatch/dlq/operations (?limit=, default 25, at most 200).

When a Database Does Not Answer ​

Every summary and query fans out to each service's message databases, and the page never presents a partial answer as a whole one. A banner names each database that failed to answer and its error ("1 of 4 databases failed to answer — results may be incomplete"), a second one counts databases that were announced and never answered at all, and the empty states say "the queue may not be empty" rather than "No dead letter queue entries found". When the console's own ingest listener is latched by back pressure, no answer can arrive, and the page says so instead of reporting an empty queue.

Exception Grouping ​

The Group by exception toggle collapses the Messages list by exception type — the exception class and how many of the loaded messages carry it — for spotting whether a DLQ spike stems from a single root cause (e.g., a downstream outage or a schema migration issue). It groups what is loaded, not every dead letter; the Summary tab counts those.

Multi-Tenant DLQ ​

For multi-tenant services, the Tenant filter narrows the loaded messages to one tenant, in the browser: it does not yet reach the server (wolverine#5209). To scope a query or a bulk action to one tenant, choose that tenant's Database (database-per-tenant), which every query and action does send. With a tenant chosen and no database, All Matching is off rather than act on every tenant. Selected messages are always exact.