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-metricsandcategory=<filter_name> - Name/tag sanitization to ensure valid metric identifiers
- Convenience readiness gauge in
readiness
Modules§
- readiness
- Readiness
Structs§
- Metrics
Builder - Struct that can be injected into your context to handle a
Metric. - Metrics
Instance - Implementation of the
Metrictrait. - Metrics
Instance Builder - A particular instance of the
MetricsBuilder.
Traits§
- Metric
- Trait to interface with the underlying metrics system provided by the Flex engine.