Migrate to updated micrometer Tags class

See gh-11575
This commit is contained in:
Phillip Webb
2018-01-26 14:37:06 -08:00
parent fd237f85cc
commit 643cda480f
7 changed files with 94 additions and 59 deletions

View File

@@ -43,7 +43,7 @@ public class RabbitMetricsTests {
public void connectionFactoryWithTagsIsInstrumented() {
ConnectionFactory connectionFactory = mockConnectionFactory();
SimpleMeterRegistry registry = new SimpleMeterRegistry();
new RabbitMetrics(connectionFactory, "test", Tags.zip("env", "prod"))
new RabbitMetrics(connectionFactory, "test", Tags.of("env", "prod"))
.bindTo(registry);
assertThat(registry.get("test.connections").tags("env", "prod").meter())
.isNotNull();