Merge #855 shared per-report event projection: Lock hold back near pre-#855 at N=50

Claude-Session: https://claude.ai/code/session_01GT67AD99zQQqpLCVm3p7xk
This commit is contained in:
Joseph Doherty
2026-11-11 14:34:23 -05:00
6 changed files with 971 additions and 10 deletions
@@ -177,6 +177,15 @@ public static class OtOpcUaTelemetry
/// item had already replayed a newer state (Gitea #854) — one per item and event. Every other subscriber still
/// receives them; this only stops a refresh being overtaken by older events.
/// </summary>
/// <summary>
/// Event filters given a private projection group because the server-wide registry of distinct live filter shapes is
/// full (Gitea #855 perf). Delivery is unchanged; only the per-report sharing of where-clause / field projection
/// stops for those filters, so a steadily rising count means more per-item work under the node-manager lock.
/// </summary>
public static readonly Counter<long> ConditionEventFilterGroupsUnshared =
Meter.CreateCounter<long>("otopcua.opcua.condition_events.filter_groups_unshared", unit: "{filter}",
description: "Event filters not shared because the registry of live filter shapes is full.");
public static readonly Counter<long> ConditionEventDeliveriesSuperseded =
Meter.CreateCounter<long>("otopcua.opcua.condition_events.superseded", unit: "{delivery}",
description: "Deferred condition events withheld from a Server-object item whose ConditionRefresh already replayed a newer state.");