Skip to content

ExecutionTrace class

Namespace: Vitreous.DevUI.Tracing
Assembly: Vitreous.DevUI.dll

A complete record of one command, query, or notification dispatch. Captured by TracingBehavior<TMessage, TResult> and stored in TraceStore.

public sealed class ExecutionTrace

object ← ExecutionTrace

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Whether this is a Command, Query, or Notification.

public MessageCategory Category { get; init; }

MessageCategory

Optional correlation identifier from Activity.Current or HTTP headers.

public string? CorrelationId { get; init; }

string?

How long the full dispatch (including pipeline) took.

public TimeSpan Duration { get; init; }

TimeSpan

Populated when IsSuccess is false.

public ErrorSnapshot? Error { get; init; }

ErrorSnapshot?

Simple name of the handler type.

public string HandlerType { get; init; }

string

Unique identifier for this trace.

public Guid Id { get; init; }

Guid

true when the result was served from cache rather than from the handler. Always false when Vitreous.Caching is not registered.

public bool IsCacheHit { get; init; }

bool

true when IsSuccess was true.

public bool IsSuccess { get; init; }

bool

Number of items yielded before the enumerator was disposed. Only populated on Closed traces; null otherwise.

public int? ItemCount { get; init; }

int?

Structured log entries captured from handlers during this dispatch.

public IReadOnlyList<TraceLogEntry> Logs { get; init; }

IReadOnlyList<TraceLogEntry>

Simple name of the message type (e.g. “CreateOrderCommand”).

public string MessageType { get; init; }

string

Fully-qualified name of the message type.

public string MessageTypeFullName { get; init; }

string

JSON-serialized input message, with sensitive values masked.

public string? SerializedInput { get; init; }

string?

JSON-serialized output/result, with sensitive values masked.

public string? SerializedOutput { get; init; }

string?

Shared identifier linking the “opened” and “closed” traces of a single stream dispatch. null for non-stream traces.

public Guid? StreamId { get; init; }

Guid?

Indicates whether this trace is the “opened” or “closed” event of a stream. null for non-stream traces.

public StreamPhase? StreamPhase { get; init; }

StreamPhase?

Wall-clock time when dispatch began.

public DateTimeOffset Timestamp { get; init; }

DateTimeOffset