Struct KevlarTelemetryEvent

Namespace
Kevlar
Assembly
Kevlar.dll

Describes one synchronous event emitted by a Kevlar strategy.

public readonly struct KevlarTelemetryEvent
Inherited Members

Properties

AttemptNumber

The zero-based execution-attempt number.

public int AttemptNumber { get; }

Property Value

int

CallbackKind

The callback family that failed, when this is a callback-error event.

public CallbackErrorKind? CallbackKind { get; }

Property Value

CallbackErrorKind?

CallbackSource

The stable callback or integration identifier, when this is a callback-error event.

public string? CallbackSource { get; }

Property Value

string

Context

The active execution context. It is valid only during the listener callback.

public KevlarContext Context { get; }

Property Value

KevlarContext

Delay

The computed retry, hedge, or break delay, when applicable.

public TimeSpan Delay { get; }

Property Value

TimeSpan

Duration

The measured attempt duration, or Zero when not applicable.

public TimeSpan Duration { get; }

Property Value

TimeSpan

EventName

The stable event name, such as execution_attempt or retry.

public string EventName { get; }

Property Value

string

Exception

The associated exception, if any.

public Exception? Exception { get; }

Property Value

Exception

FromState

The circuit state left by a transition, when applicable.

public CircuitState? FromState { get; }

Property Value

CircuitState?

IsCancelled

Whether this hedge-attempt event completed through cancellation.

public bool IsCancelled { get; }

Property Value

bool

IsSuccess

Whether the event's outcome succeeded.

public bool IsSuccess { get; }

Property Value

bool

IsWinner

Whether this hedge-attempt event describes the outcome selected by the pipeline.

public bool IsWinner { get; }

Property Value

bool

OperationKey

The bounded logical operation key supplied through OperationKey.

public string? OperationKey { get; }

Property Value

string

Result

The handled result for result-aware events, when available.

public object? Result { get; }

Property Value

object

RetryAfter

The estimated time until a rejected execution may be retried.

public TimeSpan? RetryAfter { get; }

Property Value

TimeSpan?

Severity

The event severity.

public KevlarTelemetrySeverity Severity { get; }

Property Value

KevlarTelemetrySeverity

ShieldName

The executing shield name, if configured.

public string? ShieldName { get; }

Property Value

string

StrategyIndex

The zero-based strategy position, or -1 for a caller-recorded event.

public int StrategyIndex { get; }

Property Value

int

StrategyName

The stable strategy name.

public string StrategyName { get; }

Property Value

string

SuppressionReason

The bounded reason additional attempts were suppressed, when applicable.

public string? SuppressionReason { get; }

Property Value

string

ToState

The circuit state entered by a transition, when applicable.

public CircuitState? ToState { get; }

Property Value

CircuitState?