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
errorTypestringThe classification of the error.
stagestringThe 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
changeTypeContextChangeTypeThe type of change applied to the context.
fieldNamestringThe name of the field that changed.
stagestringThe pipeline stage where the change occurred.
RecordContextSnapshot(string, int, int)
Records a context snapshot event.
void RecordContextSnapshot(string stage, int fieldCount, int sizeBytes)
Parameters
stagestringThe pipeline stage where the snapshot occurred.
fieldCountintThe number of fields present in the context.
sizeBytesintThe size of the context payload in bytes.
RecordContextValidationFailure(string)
Records a context validation failure.
void RecordContextValidationFailure(string failureReason)
Parameters
failureReasonstringThe reason validation failed.
RecordCrossBoundaryTransition(string, bool)
Records a cross-boundary transition.
void RecordCrossBoundaryTransition(string serviceBoundary, bool contextPreserved)