Skip to main content
Table of Contents

Class ApplicationDiagnostics.Metrics

Namespace
Stratara.Diagnostics
Assembly
Stratara.Diagnostics.dll

Stratara's shared Meter and instruments.

public static class ApplicationDiagnostics.Metrics
Inheritance
ApplicationDiagnostics.Metrics
Inherited Members

Fields

CommandDuration

Histogram of command-handling latency in milliseconds for commands dispatched through the outbox worker. Tagged with RequestType and Outcome (success or failure).

public static readonly Histogram<double> CommandDuration

Field Value

Histogram<double>

Remarks

It is not end-to-end command latency, despite the name. The in-process mediator dispatch path records nothing here, so a host that dispatches commands directly sees an empty histogram and a host that does both sees only half its traffic. Read it as "outbox command latency". Covering the in-process path would change what the instrument means and is a separate decision.

CommandDurationName

Instrument name command.duration; see CommandDuration.

public const string CommandDurationName = "command.duration"

Field Value

string

EventSourceAppendConflicts

Counter that tracks optimistic-concurrency conflicts encountered when appending events to a stream (write store).

public static readonly Counter<long> EventSourceAppendConflicts

Field Value

Counter<long>

EventSourceAppendConflictsName

Instrument name event_source.append.conflicts; see EventSourceAppendConflicts.

public const string EventSourceAppendConflictsName = "event_source.append.conflicts"

Field Value

string

EventsAppended

Counter of domain events appended to an event stream. Tagged with EventType and AggregateType so operators can see per-event-type and per-aggregate write throughput.

public static readonly Counter<long> EventsAppended

Field Value

Counter<long>

EventsAppendedName

Instrument name event_source.events.appended; see EventsAppended.

public const string EventsAppendedName = "event_source.events.appended"

Field Value

string

MessagesDeadLettered

Counter of messages moved to a subscription's dead-letter destination after exhausting their redelivery bound. Tagged with Topic, Subscription and Reason (conflict or failure).

public static readonly Counter<long> MessagesDeadLettered

Field Value

Counter<long>

MessagesDeadLetteredName

Instrument name messaging.dead_lettered; see MessagesDeadLettered.

public const string MessagesDeadLetteredName = "messaging.dead_lettered"

Field Value

string

Meter

The shared Meter instance.

public static readonly Meter Meter

Field Value

Meter

MeterName

The meter name — "Stratara.Service".

public const string MeterName = "Stratara.Service"

Field Value

string

OrleansCompletionFailed

Counter of removals of completed intents that failed and were left to the drain.

public static readonly Counter<long> OrleansCompletionFailed

Field Value

Counter<long>

OrleansCompletionFailedName

Instrument name orleans.completion.failed; see OrleansCompletionFailed.

public const string OrleansCompletionFailedName = "orleans.completion.failed"

Field Value

string

OrleansCompletionFlushed

Counter of completed intents removed from durable storage.

public static readonly Counter<long> OrleansCompletionFlushed

Field Value

Counter<long>

OrleansCompletionFlushedName

Instrument name orleans.completion.flushed; see OrleansCompletionFlushed.

public const string OrleansCompletionFlushedName = "orleans.completion.flushed"

Field Value

string

OrleansHeavyPermitsInUse

Up/down counter of heavy-work permits currently held across the cluster.

public static readonly UpDownCounter<long> OrleansHeavyPermitsInUse

Field Value

UpDownCounter<long>

OrleansHeavyPermitsInUseName

Instrument name orleans.heavy.permits_in_use; see OrleansHeavyPermitsInUse.

public const string OrleansHeavyPermitsInUseName = "orleans.heavy.permits_in_use"

Field Value

string

OrleansIntentKept

Counter of recorded commands kept for an operator after exhausting their resume bound.

public static readonly Counter<long> OrleansIntentKept

Field Value

Counter<long>

OrleansIntentKeptName

Instrument name orleans.intent.kept; see OrleansIntentKept.

public const string OrleansIntentKeptName = "orleans.intent.kept"

Field Value

string

OrleansIntentRecorded

Counter of commands recorded as durable intents before their dispatch returned.

public static readonly Counter<long> OrleansIntentRecorded

Field Value

Counter<long>

OrleansIntentRecordedName

Instrument name orleans.intent.recorded; see OrleansIntentRecorded.

public const string OrleansIntentRecordedName = "orleans.intent.recorded"

Field Value

string

OrleansIntentResumed

Counter of recorded commands handed over again after their hand-over was lost.

public static readonly Counter<long> OrleansIntentResumed

Field Value

Counter<long>

OrleansIntentResumedName

Instrument name orleans.intent.resumed; see OrleansIntentResumed.

public const string OrleansIntentResumedName = "orleans.intent.resumed"

Field Value

string

OrleansReaderApplied

Counter of store entries a reader of the Orleans execution model applied. Tagged with Projection (the consumer) and Partition.

public static readonly Counter<long> OrleansReaderApplied

Field Value

Counter<long>

OrleansReaderAppliedName

Instrument name orleans.reader.applied; see OrleansReaderApplied.

public const string OrleansReaderAppliedName = "orleans.reader.applied"

Field Value

string

OrleansReaderLagName

Instrument name orleans.reader.lag — an observable gauge the Orleans execution model publishes on this meter: the seconds since the time recorded with the oldest entry a store reader has not applied, tagged with Projection and Partition.

public const string OrleansReaderLagName = "orleans.reader.lag"

Field Value

string

OrleansReaderStalled

Up/down counter of partitions whose reader stopped at an entry it could not apply. Tagged with Projection and Partition; it rises when a partition stalls and falls when it advances again.

public static readonly UpDownCounter<long> OrleansReaderStalled

Field Value

UpDownCounter<long>

OrleansReaderStalledName

Instrument name orleans.reader.stalled; see OrleansReaderStalled.

public const string OrleansReaderStalledName = "orleans.reader.stalled"

Field Value

string

OutboxEntriesPublished

Counter of outbox entries successfully published by the outbox worker. Tagged with OutboxKind (command or event) so operators can distinguish command-dispatch from event-bundle throughput.

public static readonly Counter<long> OutboxEntriesPublished

Field Value

Counter<long>

OutboxEntriesPublishedName

Instrument name outbox.published; see OutboxEntriesPublished.

public const string OutboxEntriesPublishedName = "outbox.published"

Field Value

string

ProjectionBundleDuration

Histogram of projection event-bundle processing latency in milliseconds, measured around the projection worker's per-bundle dispatch. Tagged with Outcome (success or failure).

public static readonly Histogram<double> ProjectionBundleDuration

Field Value

Histogram<double>

ProjectionBundleDurationName

Instrument name projection.bundle.duration; see ProjectionBundleDuration.

public const string ProjectionBundleDurationName = "projection.bundle.duration"

Field Value

string

ProjectionEventsProcessed

Counter of events dispatched to projection handlers. Tagged with EventType and Outcome (success or failure) so operators can see per-event-type projection throughput and failure rates.

public static readonly Counter<long> ProjectionEventsProcessed

Field Value

Counter<long>

ProjectionEventsProcessedName

Instrument name projection.events.processed; see ProjectionEventsProcessed.

public const string ProjectionEventsProcessedName = "projection.events.processed"

Field Value

string

SagaBundleDuration

Histogram of saga event-bundle processing latency in milliseconds, measured around the saga worker's per-bundle dispatch. Tagged with Outcome (success or failure).

public static readonly Histogram<double> SagaBundleDuration

Field Value

Histogram<double>

SagaBundleDurationName

Instrument name saga.bundle.duration; see SagaBundleDuration.

public const string SagaBundleDurationName = "saga.bundle.duration"

Field Value

string

SagaEventsProcessed

Counter of events dispatched to saga handlers. Tagged with EventType and Outcome (success or failure) so operators can see per-event-type saga throughput and failure rates.

public static readonly Counter<long> SagaEventsProcessed

Field Value

Counter<long>

SagaEventsProcessedName

Instrument name saga.events.processed; see SagaEventsProcessed.

public const string SagaEventsProcessedName = "saga.events.processed"

Field Value

string

SagasInFlight

Up/down counter tracking the number of saga event-bundles currently in flight (being processed across all saga-worker subscriptions). A persistently rising value indicates the saga lane cannot keep up with the inbound event rate.

public static readonly UpDownCounter<long> SagasInFlight

Field Value

UpDownCounter<long>

SagasInFlightName

Instrument name saga.inflight; see SagasInFlight.

public const string SagasInFlightName = "saga.inflight"

Field Value

string