Path: redb-route/redb.Route.As2/As2Metrics.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.As2/As2Metrics.cs
----
using System.Diagnostics.Metrics;
using redb.Route.Telemetry;
namespace redb.Route.As2;
/// AS2 counters, on the canonical meter .
internal static class As2Metrics
{
private static readonly Meter Meter = new(RouteMetrics.MeterName);
/// Asynchronous MDNs the receiver gave up on after its attempts.
public static readonly Counter AsyncMdnFailed =
Meter.CreateCounter("redb.route.as2.mdn.async_failed", "receipts", "Asynchronous MDNs not delivered after every attempt.");
/// Messages refused because every asynchronous MDN slot was taken.
public static readonly Counter AsyncMdnRejected =
Meter.CreateCounter("redb.route.as2.mdn.async_rejected", "messages", "Messages refused because every asynchronous MDN slot was taken.");
}