The interface is not stable
This is a Minimum Viable Product for feedback, experimentation and iteration
Provide a backend for the metrics
facade crate,
to emit metrics in CloudWatch Embedded Metrics Format
Intended for use with the lambda_runtime
, however Collector::flush_to(...)
could be used
for anything that writes logs that end up in CloudWatch.
```rust let metrics = metricscloudwatchembedded::Builder::new() .cloudwatch_namespace("MyApplication") .init() .unwrap();
metrics::increment_counter!("requests", "Method" => "Default");
metrics .set_property("RequestId", "ABC123") .flush(); ```
Collector::flush()
,
overflow is silently droppedBuilder::with_dimension(...)
may not overlap with metric labelsmetrics::Unit
are supported
[https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html]metrics::Key
will silently fail