fix(grpc-data): A4 review r1 — AdminUI helpers null-safe + doc comments restored; metric descriptions name both sides; docs: S1/S2/S3 behaviour, RefreshRequired only on a changed incomplete set, SourceName vs runtime status (S4), scripted Good = applied, A4-docs citations

This commit is contained in:
Joseph Doherty
2026-11-25 00:22:54 -05:00
parent c93290d0a0
commit 0cac09cee3
8 changed files with 60 additions and 19 deletions
@@ -242,22 +242,22 @@ public static class OtOpcUaTelemetry
/// <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.");
description: "Open condition items (tag side: origin = root-scoped items served to peers; consumer = items its condition streams hold open).");
/// <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.");
description: "Condition resyncs (tag side: origin = an item re-snapshotted after a condition-state hub reader reset; consumer = a condition stream that opened and ended).");
/// <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.");
description: "Condition capacity rejections (tag side: origin = an item over its MaxConditions at snapshot begin; consumer = a mapping reset to ConditionCapacity).");
/// <summary>A2b: remote condition method calls served by this origin, by method and outcome (plan §6 metrics; no ids).</summary>
public static readonly Counter<long> DataConnConditionMethods =
Meter.CreateCounter<long>("otopcua.dataconn.condition_methods", unit: "{call}",
description: "Remote condition method calls served by this origin (tags: method, outcome).");
description: "Remote condition method calls (tags: method, outcome, side: origin = served, consumer = forwarded).");
/// <summary>A1 (G3): deferred MarkConditionsKnown discarded because an alarm projection of the same source did not land.</summary>
public static readonly Counter<long> DataConnConditionMarksDiscarded =