Table of Contents

Interface IContextFlowHistogramMetrics

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

Histogram-based context flow metrics for recording distribution measurements such as context sizes, pipeline latencies, and serialization timings.

public interface IContextFlowHistogramMetrics
Extension Methods

Methods

RecordContextSize(string, int)

Records context size metrics.

void RecordContextSize(string stage, int sizeBytes)

Parameters

stage string

The pipeline stage being measured.

sizeBytes int

The size of the context payload in bytes.

RecordContextSizeThresholdExceeded(string, int)

Records when context size exceeds threshold.

void RecordContextSizeThresholdExceeded(string stage, int sizeBytes)

Parameters

stage string

The pipeline stage where the threshold was exceeded.

sizeBytes int

The measured size in bytes.

RecordDeserializationLatency(string, long)

Records deserialization latency.

void RecordDeserializationLatency(string operationType, long latencyMs)

Parameters

operationType string

The type of deserialization operation.

latencyMs long

The latency in milliseconds.

RecordPipelineStageLatency(string, long)

Records pipeline stage latency.

void RecordPipelineStageLatency(string stage, long latencyMs)

Parameters

stage string

The pipeline stage being measured.

latencyMs long

The latency in milliseconds.

RecordSerializationLatency(string, long)

Records serialization latency.

void RecordSerializationLatency(string operationType, long latencyMs)

Parameters

operationType string

The type of serialization operation.

latencyMs long

The latency in milliseconds.