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 ExecutionTraceInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Section titled “Properties”Category
Section titled “ Category”Whether this is a Command, Query, or Notification.
public MessageCategory Category { get; init; }Property Value
Section titled “Property Value”CorrelationId
Section titled “ CorrelationId”Optional correlation identifier from Activity.Current or HTTP headers.
public string? CorrelationId { get; init; }Property Value
Section titled “Property Value”Duration
Section titled “ Duration”How long the full dispatch (including pipeline) took.
public TimeSpan Duration { get; init; }Property Value
Section titled “Property Value”Populated when IsSuccess is false.
public ErrorSnapshot? Error { get; init; }Property Value
Section titled “Property Value”HandlerType
Section titled “ HandlerType”Simple name of the handler type.
public string HandlerType { get; init; }Property Value
Section titled “Property Value”Unique identifier for this trace.
public Guid Id { get; init; }Property Value
Section titled “Property Value”IsCacheHit
Section titled “ IsCacheHit”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; }Property Value
Section titled “Property Value”IsSuccess
Section titled “ IsSuccess”public bool IsSuccess { get; init; }Property Value
Section titled “Property Value”ItemCount
Section titled “ ItemCount”Number of items yielded before the enumerator was disposed. Only populated on Closed traces; null otherwise.
public int? ItemCount { get; init; }Property Value
Section titled “Property Value”int?
Structured log entries captured from handlers during this dispatch.
public IReadOnlyList<TraceLogEntry> Logs { get; init; }Property Value
Section titled “Property Value”MessageType
Section titled “ MessageType”Simple name of the message type (e.g. “CreateOrderCommand”).
public string MessageType { get; init; }Property Value
Section titled “Property Value”MessageTypeFullName
Section titled “ MessageTypeFullName”Fully-qualified name of the message type.
public string MessageTypeFullName { get; init; }Property Value
Section titled “Property Value”SerializedInput
Section titled “ SerializedInput”JSON-serialized input message, with sensitive values masked.
public string? SerializedInput { get; init; }Property Value
Section titled “Property Value”SerializedOutput
Section titled “ SerializedOutput”JSON-serialized output/result, with sensitive values masked.
public string? SerializedOutput { get; init; }Property Value
Section titled “Property Value”StreamId
Section titled “ StreamId”Shared identifier linking the “opened” and “closed” traces of a single stream dispatch. null for non-stream traces.
public Guid? StreamId { get; init; }Property Value
Section titled “Property Value”Guid?
StreamPhase
Section titled “ StreamPhase”Indicates whether this trace is the “opened” or “closed” event of a stream. null for non-stream traces.
public StreamPhase? StreamPhase { get; init; }Property Value
Section titled “Property Value”Timestamp
Section titled “ Timestamp”Wall-clock time when dispatch began.
public DateTimeOffset Timestamp { get; init; }