Skip to content

4.0.0

Compare
Choose a tag to compare
@sanych-sun sanych-sun released this 18 Aug 18:14
4.0.0
7a39b16
  • 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