Table of Contents

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

int

Fields

Gets the context field values at this point.

public required IDictionary<string, object?> Fields { get; init; }

Property Value

IDictionary<string, object>

MessageId

Gets or sets the message ID this snapshot belongs to.

public required string MessageId { get; set; }

Property Value

string

Metadata

Gets additional metadata about this snapshot.

public required IReadOnlyDictionary<string, object> Metadata { get; init; }

Property Value

IReadOnlyDictionary<string, object>

SizeBytes

Gets or sets the serialized size of the context in bytes.

public int SizeBytes { get; set; }

Property Value

int

Stage

Gets or sets the pipeline stage where this snapshot was taken.

public required string Stage { get; set; }

Property Value

string

Timestamp

Gets or sets when this snapshot was captured.

public DateTimeOffset Timestamp { get; set; }

Property Value

DateTimeOffset