Class ContextSnapshot
- Namespace
- Excalibur.Dispatch.Observability.Context
- Assembly
- Excalibur.Dispatch.Observability.dll
Represents a snapshot of context state at a specific point in time.
public sealed class ContextSnapshot
- Inheritance
-
ContextSnapshot
- Inherited Members
- Extension Methods
Properties
FieldCount
Gets or sets the count of fields in the context.
public int FieldCount { get; set; }
Property Value
Fields
Gets the context field values at this point.
public required IDictionary<string, object?> Fields { get; init; }
Property Value
MessageId
Gets or sets the message ID this snapshot belongs to.
public required string MessageId { get; set; }
Property Value
Metadata
Gets additional metadata about this snapshot.
public required IReadOnlyDictionary<string, object> Metadata { get; init; }
Property Value
SizeBytes
Gets or sets the serialized size of the context in bytes.
public int SizeBytes { get; set; }
Property Value
Stage
Gets or sets the pipeline stage where this snapshot was taken.
public required string Stage { get; set; }
Property Value
Timestamp
Gets or sets when this snapshot was captured.
public DateTimeOffset Timestamp { get; set; }