Module dipstick::app [] [src]

This module regroups the application metrics front-end.

It provides the differentiated, high-level instruments (timers, counters, gauges...) objects, along with consistent metric naming / grouping facilities.

It should also allows additional per-metric configuration parameters.

Structs

AppMetrics

Variations of this should also provide control of the metric recording scope.

Counter

A counter that sends values to the metrics backend

Event

A monotonic counter metric. Since value is only ever increased by one, no value parameter is provided, preventing potential problems.

Gauge

A gauge that sends values to the metrics backend

Timer

A timer that sends values to the metrics backend Timers can record time intervals in multiple ways : - with the time! macrohich wraps an expression or block with start() and stop() calls. - with the time(Fn) methodhich wraps a closure with start() and stop() calls. - with start() and stop() methodsrapping around the operation to time - with the interval_us() method, providing an externally determined microsecond interval

Traits

ToPrimitive

A generic trait for converting a value to a number.

Functions

metrics

Wrap the metrics backend to provide an application-friendly interface.