Skip to main content

Crate pdk_metrics_lib

Crate pdk_metrics_lib 

Source
Expand description

PDK Metrics Library

USE AT OWN RISK: The metrics library is experimental and subject to change.

Exposes interfaces to handle counters and gauges for custom policies.

§Highlights

  • Counters and gauges via MetricsBuilder
  • Default tags applied automatically: source=custom-metrics and category=<filter_name>
  • Name/tag sanitization to ensure valid metric identifiers
  • Convenience readiness gauge in readiness

Modules§

readiness
Readiness

Structs§

MetricsBuilder
Struct that can be injected into your context to handle a Metric.
MetricsInstance
Implementation of the Metric trait.
MetricsInstanceBuilder
A particular instance of the MetricsBuilder.

Traits§

Metric
Trait to interface with the underlying metrics system provided by the Flex engine.