Vitreous.DevUI.Tracing namespace
Classes
Section titled “Classes”Serializes captured messages and results for display, masking sensitive values, and serializes traces for the UI. One instance (and one set of JsonSerializerOptions, with its metadata cache) is shared by every tracing behavior instead of one per closed generic type.
A snapshot of an Error or exception that is safe to serialize. ExceptionType and StackTrace are set when an exception is involved: thrown by the pipeline, or attached to the error (see Exception).
A complete record of one command, query, or notification dispatch. Captured by TracingBehavior<TMessage, TResult> and stored in TraceStore.
NotificationTracingBehavior<TNotification>
Notification-specific tracing behavior — no Result wrapping.
StreamTracingBehavior<TMessage, TResult>
Stream pipeline behavior that captures two traces per stream dispatch:
- An Opened trace — appended immediately when setup completes (or fails).
- A Closed trace — appended by
TracedAsyncEnumerator<T>when the enumerator is disposed, including the total item count and stream duration.
Both traces share the same StreamId. Passes straight through, recording nothing, until the developer UI is activated (see DevUIState).
Ambient context set by TracingBehavior<TMessage, TResult> on the current async call stack. Any ILogger call made inside a handler writes to both the original logger and this context.
A single log entry captured from an ILogger call made inside a handler.
Thread-safe ring buffer that holds the last Capacity execution traces. New entries push out the oldest when the buffer is full. Optimized for a high-frequency write path and an infrequent bulk-read path (SSE replay).
TracingBehavior<TMessage, TResult>
Pipeline behavior that wraps every command/query dispatch, capturing timing, result, serialized input/output, and handler logs. Appends an ExecutionTrace to TraceStore after each dispatch.
Category of dispatched message — used for UI filtering.
Indicates which lifecycle event a stream trace represents.