Table of Contents

Interface IContextFlowCounterMetrics

Namespace
Excalibur.Dispatch.Observability.Context
Assembly
Excalibur.Dispatch.Observability.dll

Counter-based context flow metrics for recording discrete events such as snapshots, mutations, errors, validation failures, and boundary transitions.

public interface IContextFlowCounterMetrics
Extension Methods

Methods

RecordContextError(string, string)

Records a context error event.

void RecordContextError(string errorType, string stage)

Parameters

errorType string

The classification of the error.

stage string

The pipeline stage at which the error happened.

RecordContextMutation(ContextChangeType, string, string)

Records a context mutation event.

void RecordContextMutation(ContextChangeType changeType, string fieldName, string stage)

Parameters

changeType ContextChangeType

The type of change applied to the context.

fieldName string

The name of the field that changed.

stage string

The pipeline stage where the change occurred.

RecordContextSnapshot(string, int, int)

Records a context snapshot event.

void RecordContextSnapshot(string stage, int fieldCount, int sizeBytes)

Parameters

stage string

The pipeline stage where the snapshot occurred.

fieldCount int

The number of fields present in the context.

sizeBytes int

The size of the context payload in bytes.

RecordContextValidationFailure(string)

Records a context validation failure.

void RecordContextValidationFailure(string failureReason)

Parameters

failureReason string

The reason validation failed.

RecordCrossBoundaryTransition(string, bool)

Records a cross-boundary transition.

void RecordCrossBoundaryTransition(string serviceBoundary, bool contextPreserved)

Parameters

serviceBoundary string

The boundary that was crossed.

contextPreserved bool

Whether the context was preserved across the boundary.