Releases: awslabs/metrique
Releases · awslabs/metrique
metrique-v0.1.20
metrique-v0.1.19
metrique-v0.1.18
Other
- Add Debug derive to SetEntryDimensions (#202)
metrique-v0.1.17
Fixed
- Fix issues with
#[derive(Debug)]on metrics entries (#200)
metrique-v0.1.16
metrique-v0.1.15
Fixes
- Fix docs.rs build, add docs.rs build check script and CI job (#188)
metrique-v0.1.14
Added
- Add support for
#[aggregate]and aggregation (#158). This is a major new feature—you can find lots of docs and examples in themetrique-aggregationpackage.#[aggregate]allows you to take your existing unit-of-work metrics and aggregate them, potentially across multiple different sets of dimensions.
#[aggregate]
#[metrics]
struct BackendCall {
#[aggregate(strategy = Sum)]
requests_made: usize,
#[aggregate(strategy = Histogram<Duration>)]
#[metrics(unit = Millisecond)]
latency: Duration,
#[aggregate(strategy = Sum)]
errors: u64,
}Other
metrique-v0.1.13
Added
Entry enum example:
#[metrics(tag(name = "Operation"), subfield)]
enum OperationMetrics {
Read(#[metrics(flatten)] ReadMetrics),
Delete {
key_count: usize,
},
}
#[metrics(rename_all = "PascalCase")]
struct MyMetrics {
operation: MyOperationMetrics,
success: bool, // this could be an enum too, if you wanted detailed success/failure metrics!
request_id: String,
}
#[metrics(subfield)]
struct ReadMetrics {
files_read: usize
}
// you would normally compose this gradually, and append on drop
let a_metric = RequestMetrics {
success: true,
request_id: "my_request".to_string(),
operation: OperationMetrics::Delete { key_count: 5 }
};
// Values: { "RequestId": "my_request", "Operation": "Delete" }
// Metrics: { "Success": 1, "KeyCount": 5 }metrique-v0.1.12
Added
- [breaking] Add MetricMap wrapper for better error messages in test_util (#157). The change is technically a breaking change since it alters the type of a public API, however, it is
very unlikely to break actual code.
Fixed
- Add scaling factor to ExponentialAggregationStrategy. This improves storage resolution for durations <1ms and numeric values <1. (#148)