Class MeteredDefinition

Assembly: redb.Route.dll

Scope-opener definition for per-step metrics collection.
All child steps run inside a single that records
redb.route.step.processed, redb.route.step.failed,
and redb.route.step.duration tagged with .
Inherits the leaf DSL from ;
close with or the universal .

public class MeteredDefinition : RouteDefinitionBase<MeteredDefinition>, IRouteDefinition, IProcessorDefinition, IRouteScope

Inheritance

Implements

Inherited Members

Properties

StepName

Step name used as a metric tag value for redb.route.step.

public string StepName { get; }

TagProviders

Tag providers evaluated per message to enrich the recorded metrics with low-cardinality dimensions.

public IReadOnlyList<(string Name, Func<IExchange, object?> Resolver)> TagProviders { get; }

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

End()

Closes this scope and returns the parent .

public IRouteDefinition End()

EndMetered()

Closes this metered scope and returns the parent route definition.

public IRouteDefinition EndMetered()

Tag(string, Func<IExchange, object?>)

Adds a dimension/label evaluated per message. Use only with bounded value domains

public MeteredDefinition Tag(string name, Func<IExchange, object?> resolver)

TagFromHeader(string, string)

Convenience: tag the metric with the value of a header.

public MeteredDefinition TagFromHeader(string tagName, string headerName)