metrics-fn

Crates.iometrics-fn
lib.rsmetrics-fn
version0.1.1
sourcesrc
created_at2022-03-27 21:40:39.80108
updated_at2022-03-27 21:40:39.80108
descriptionRust Function Metrics runtime module.
homepagehttps://github.com/vgobbo/rust-metrics-fn
repositoryhttps://github.com/vgobbo/rust-metrics-fn
max_upload_size
id557457
size10,234
Vinicius Gobbo Antunes de Oliveira (vgobbo)

documentation

README

Function Metrics

Collects execution metrics for the annotated function.

The following metrics are collected:

  • Execution time.
  • Success (if function returns a core::result::Result-like type.

The metrics are sent to recorders, which can be thought as backends, which can send for metric aggregation services, for example.

Currently, there are the following recorders implemented:

  • Log: simply log the metrics.
  • Prometheus: collect the metrics so they can be sent to Prometheus.
Commit count: 107

cargo fmt