feat(grpc-data): H4 remote-history diagnostics and metrics

Consumer and origin history evidence for data connections (plan §6):
- DataConnectionHistoryDiagnostics: otopcua.dataconn.history.reads{variant,status_class,side} and
  otopcua.dataconn.history.continuations.active{side} on the exported OtOpcUa meter (the H2 origin
  counter sat on a private meter the host never exported); the plan's unknown-bits counter is the
  existing X0 otopcua.dataconnection.unknown_operations_dropped, reused
- per-connection projected answers by status class and open consumer continuations (settled on
  resume claim or release); origin sessions, open continuations and answers by status class
- negotiated features and advertised history variants/aggregates per connection
- AdminUI data-connections page renders them plus the dropped unknown-operation bits (#919)
- H4 unit-phase manifest key
This commit is contained in:
Joseph Doherty
2026-11-24 08:01:57 -05:00
parent b1973d6fdd
commit e3f21cb86c
19 changed files with 687 additions and 30 deletions
@@ -53,7 +53,15 @@ public abstract class ProjectedHistoryContinuation
/// <summary>Marks the cursor as handed back for a resume: the resume read owns the origin token from here on.</summary>
/// <returns><c>false</c> when it was already released or resumed.</returns>
public bool TryClaimForResume() => Volatile.Read(ref _released) == 0 && Interlocked.Exchange(ref _claimed, 1) == 0;
public bool TryClaimForResume()
{
if (Volatile.Read(ref _released) != 0 || Interlocked.Exchange(ref _claimed, 1) != 0) return false;
OnClaimed();
return true;
}
/// <summary>Called once when the cursor is claimed for a resume (its origin token is about to be sent back).</summary>
protected virtual void OnClaimed() { }
private void ReleaseOnce()
{