4.0.0
- Significant performance and memory allocation improvement
- New labels API which uses ValueTuple to pass labels
- New abstraction IMetricFamily dedicated to manage labeled samples of the metric.
- Method Labels on metric family marked as Obsolete, use WithLabels instead.
- Int64-based gauge to achieve the best performance for integer metrics.
- Metrics static entry point is considered to be obsolete, we encourage you to use MetricFactory directly to create a metrics. As MetricFactory as IoC friendly and could be substituted via interface for unit tests.
Breaking changes:
- We have decided to drop netstandard1.3 support
- MetricFactory (and Metrics static API) returns IMetricFamily instead of metrics implementation.
- Even though there is extension methods on IMetricFamily to emulate previous API for unlabelled metric sample, there is no way to create extension property for Value. Use IMetricFamily.Unlabelled.Value instead