Micrometer/micrometer: Release v1.6.0

Name: micrometer

Owner: Micrometer

Release: v1.6.0

Released: 2020-10-29

License: Apache-2.0

Release Assets:

1.6.x is an LTS release line - see the support page for more information on LTS vs non-LTS releases. This release contains changes from the 1.6.0 milestone.

Thank you to all the people who contributed to this release.


Compatibility impacting

  • Timer.Sample's tags methods and the stop method that takes a Timer.Builder have been removed. Instead, tags should be specified on the Timer passed to the remaining stop method. This makes for consistency - tags are always configured on the Timer.

    Example before/after Timer.Sample code
    Old codeSupported code
    Timer.Sample sample = Timer.start(meterRegistry);
    // ... do some stuff
    sample.tags("flag", flag);
    sample.tags(Tags.of("other", "tag"));
    sample.stop(meterRegistry, Timer.builder("sample.time"));
    
    Timer.Sample sample = Timer.start(meterRegistry);
    // ... do some stuff
    sample.stop(Timer.builder("sample.time")
             .tag("flag", flag)
             .tags(Tags.of("other", "tag"))
             .register(meterRegistry));
    
  • HibernateMetrics requires Hibernate 5.3 or later now.

  • Kafka metrics - https://github.com/micrometer-metrics/micrometer/issues/2256 The tag for client id on Kafka metrics has been changed from client-id to client.id to match the previous version of Kafka metrics from KafkaConsumerMetrics and to follow our canonical format. Likewise kafka-version has been updated to kafka.version. A MeterFilter can be applied to undo the tag name change or to apply this change to 1.5.x versions of Micrometer. For example: Users who want client.id in 1.5.x should configure MeterFilter.renameTag("kafka", "client-id", "client.id") Users who want client-id in 1.6.x should configure the opposite filter: MeterFilter.renameTag("kafka", "client.id", "client-id").

Registry-specific

New Meter Registries

New metrics

Enhancements

Registry-specific changes

CloudWatch

Elasticsearch

Wavefront

To top