fix(drivers): overrun-meter tag keys align with the Meter's snake_case convention (driver_type/driver_instance)

This commit is contained in:
Joseph Doherty
2026-08-17 03:54:53 -04:00
parent c149410ba3
commit 97902d6879
8 changed files with 33 additions and 14 deletions
@@ -192,8 +192,8 @@ public sealed class ModbusDriver
// The engine owns no Meter (Core.Abstractions takes no metrics dependency), so this
// closure IS the production consumer of its overrun signal.
onOverrun: _ => OtOpcUaTelemetry.PollOverruns.Add(1,
new KeyValuePair<string, object?>("driver.type", DriverTypeNames.Modbus),
new KeyValuePair<string, object?>("driver.instance", driverInstanceId)));
new KeyValuePair<string, object?>(OtOpcUaTelemetry.PollOverrunDriverTypeTag, DriverTypeNames.Modbus),
new KeyValuePair<string, object?>(OtOpcUaTelemetry.PollOverrunDriverInstanceTag, driverInstanceId)));
}
/// <summary>Upper bound on the poll-loop failure backoff — adopts the S7-proven 30 s cap fleet-wide (05/STAB-8).</summary>