Interface IMetricsSnapshot
Read access to the OpenTelemetry layer from inside the process.
public interface IMetricsSnapshot
Methods
Point(string, string?, string?)
The current point of an instrument, keyed exactly by its tags: routeId
MetricSnapshotPoint? Point(string instrument, string? routeId = null, string? step = null)
Value(string, string?, string?)
Convenience reading: the — a counter's running
double? Value(string instrument, string? routeId = null, string? step = null)
Remarks
The "redb.Route" meter is push-only, as every .NET is: the EIP
counters (throttle.delayed, circuitbreaker.tripped, …) and the .Metered()
step durations go to a subscriber or nowhere. This service is that subscriber, kept in-process:
current values only — no windows, no percentiles, no history. Whoever needs those plugs in an
OpenTelemetry backend; a bus should not carry a small Prometheus inside.
Deliberately opt-in (context.UseMetricsSnapshot()): a
receives a callback for every measurement of every instrument,
which is a tax all routes would pay for a feature few ask for.