feat(grpc-data): A2a — origin condition streaming: root-scoped items over the A1 hub, priority queue, host negotiation, consumer decode

This commit is contained in:
Joseph Doherty
2026-11-24 12:08:08 -05:00
parent 73142e52d4
commit 5b03c8a26e
17 changed files with 809 additions and 43 deletions
@@ -239,6 +239,21 @@ public static class OtOpcUaTelemetry
Meter.CreateCounter<long>("otopcua.dataconn.conditions.partition_overflows", unit: "{overflow}",
description: "Condition-state hub partition overflows (epoch invalidated).");
/// <summary>A2: origin root-scoped condition items currently open (plan §6 metrics).</summary>
public static readonly UpDownCounter<long> DataConnConditionItems =
Meter.CreateUpDownCounter<long>("otopcua.dataconn.conditions.items", unit: "{item}",
description: "Open root-scoped condition items on this origin.");
/// <summary>A2: condition-item re-snapshots after a hub reader reset (records evicted before the item read them).</summary>
public static readonly Counter<long> DataConnConditionResyncs =
Meter.CreateCounter<long>("otopcua.dataconn.conditions.resyncs", unit: "{resync}",
description: "Root-scoped condition items re-snapshotted after a condition-state hub reader reset.");
/// <summary>A2: root-scoped condition items whose listing exceeded the item's MaxConditions (total reported, no records).</summary>
public static readonly Counter<long> DataConnConditionCapacityRejections =
Meter.CreateCounter<long>("otopcua.dataconn.conditions.capacity_rejections", unit: "{item}",
description: "Root-scoped condition items over their MaxConditions at snapshot begin.");
/// <summary>A1 (G3): deferred MarkConditionsKnown discarded because an alarm projection of the same source did not land.</summary>
public static readonly Counter<long> DataConnConditionMarksDiscarded =
Meter.CreateCounter<long>("otopcua.dataconn.conditions.marks_discarded", unit: "{mark}",