Prometheus.Client v4.0.0 Release Notes
Release Date: 2020-08-18 // over 3 years ago-
- 🐎 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