Interface IContextFlowTracker
- Namespace
- Excalibur.Dispatch.Observability.Context
- Assembly
- Excalibur.Dispatch.Observability.dll
Interface for context flow tracking operations.
public interface IContextFlowTracker
- Extension Methods
Methods
CorrelateAcrossBoundary(IMessageContext, string)
Correlates context across service boundaries.
void CorrelateAcrossBoundary(IMessageContext context, string serviceBoundary)
Parameters
contextIMessageContextThe context being correlated.
serviceBoundarystringThe boundary the context traversed.
DetectChanges(IMessageContext, string, string)
Detects changes between pipeline stages.
IEnumerable<ContextChange> DetectChanges(IMessageContext context, string fromStage, string toStage)
Parameters
contextIMessageContextThe context to inspect.
fromStagestringThe originating stage.
toStagestringThe destination stage.
Returns
- IEnumerable<ContextChange>
A collection describing detected changes.
GetContextLineage(string)
Gets the complete lineage of a context.
ContextLineage? GetContextLineage(string correlationId)
Parameters
correlationIdstringThe correlation identifier to retrieve.
Returns
- ContextLineage
The context lineage or null if not found.
GetMessageSnapshots(string)
Gets all snapshots for a specific message.
IEnumerable<ContextSnapshot> GetMessageSnapshots(string messageId)
Parameters
messageIdstringThe identifier of the message to inspect.
Returns
- IEnumerable<ContextSnapshot>
A collection of recorded snapshots.
RecordContextState(IMessageContext, string, IReadOnlyDictionary<string, object>?)
Records the current state of a message context.
void RecordContextState(IMessageContext context, string stage, IReadOnlyDictionary<string, object>? metadata = null)
Parameters
contextIMessageContextThe context being recorded.
stagestringThe pipeline stage identifier.
metadataIReadOnlyDictionary<string, object>Optional metadata associated with the snapshot.
ValidateContextIntegrity(IMessageContext)
Validates context integrity.
bool ValidateContextIntegrity(IMessageContext context)
Parameters
contextIMessageContextThe context to validate.