using ZB.MOM.WW.ScadaBridge.Commons.Observability; namespace ZB.MOM.WW.ScadaBridge.Host.Tests; /// /// Infrastructure-free guards for : the meter name is the /// stable value registered with OTel, and the emit helpers are safe to call (they are no-op /// until follow-on tasks wire real emit points and a listener attaches). /// public class ScadaBridgeTelemetryTests { [Fact] public void MeterName_IsStableValue() { Assert.Equal("ZB.MOM.WW.ScadaBridge", ScadaBridgeTelemetry.MeterName); } [Fact] public void EmitHelpers_DoNotThrow() { var ex = Record.Exception(() => { ScadaBridgeTelemetry.RecordDeploymentApplied(); ScadaBridgeTelemetry.RecordInboundApiRequest("X"); ScadaBridgeTelemetry.SiteConnectionOpened(); ScadaBridgeTelemetry.SiteConnectionClosed(); ScadaBridgeTelemetry.SetQueueDepthProvider(() => 5); }); Assert.Null(ex); } }