Path: redb-route/redb.Route/Telemetry/StepMetrics.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Telemetry/StepMetrics.cs ---- using System.Diagnostics.Metrics; namespace redb.Route.Telemetry; /// /// Per-step metric instruments for the .Metered() DSL. /// Uses the same as to allow a single /// .AddMeter("redb.Route") subscription in OpenTelemetry configuration. /// public static class StepMetrics { private static readonly Meter _meter = RouteMetrics.Meter; /// Total step executions completed successfully. public static readonly Counter StepProcessed = _meter.CreateCounter("redb.route.step.processed", "exchanges", "Total exchanges processed by a named step."); /// Step executions that failed with an unhandled exception. public static readonly Counter StepFailed = _meter.CreateCounter("redb.route.step.failed", "exchanges", "Exchanges that failed at a named step."); /// Step execution duration histogram. public static readonly Histogram StepDuration = _meter.CreateHistogram("redb.route.step.duration", "ms", "Duration of a named step execution in milliseconds."); }