Start building against Micrometer 2.0.0-M3
See gh-29753
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -17,8 +17,8 @@
|
||||
package org.springframework.boot.docs.actuator.metrics.supported.mongodb.command;
|
||||
|
||||
import com.mongodb.event.CommandEvent;
|
||||
import io.micrometer.binder.mongodb.MongoCommandTagsProvider;
|
||||
import io.micrometer.core.instrument.Tag;
|
||||
import io.micrometer.core.instrument.binder.mongodb.MongoCommandTagsProvider;
|
||||
|
||||
class CustomCommandTagsProvider implements MongoCommandTagsProvider {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.boot.docs.actuator.metrics.supported.mongodb.command;
|
||||
|
||||
import io.micrometer.core.instrument.binder.mongodb.MongoCommandTagsProvider;
|
||||
import io.micrometer.binder.mongodb.MongoCommandTagsProvider;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -17,8 +17,8 @@
|
||||
package org.springframework.boot.docs.actuator.metrics.supported.mongodb.connectionpool;
|
||||
|
||||
import com.mongodb.event.ConnectionPoolCreatedEvent;
|
||||
import io.micrometer.binder.mongodb.MongoConnectionPoolTagsProvider;
|
||||
import io.micrometer.core.instrument.Tag;
|
||||
import io.micrometer.core.instrument.binder.mongodb.MongoConnectionPoolTagsProvider;
|
||||
|
||||
public class CustomConnectionPoolTagsProvider implements MongoConnectionPoolTagsProvider {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.boot.docs.actuator.metrics.supported.mongodb.connectionpool;
|
||||
|
||||
import io.micrometer.core.instrument.binder.mongodb.MongoConnectionPoolTagsProvider;
|
||||
import io.micrometer.binder.mongodb.MongoConnectionPoolTagsProvider;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
package org.springframework.boot.docs.actuator.metrics.supported.mongodb.command
|
||||
|
||||
import com.mongodb.event.CommandEvent
|
||||
import io.micrometer.binder.mongodb.MongoCommandTagsProvider
|
||||
import io.micrometer.core.instrument.Tag
|
||||
import io.micrometer.core.instrument.binder.mongodb.MongoCommandTagsProvider
|
||||
|
||||
class CustomCommandTagsProvider : MongoCommandTagsProvider {
|
||||
|
||||
@@ -26,4 +26,4 @@ class CustomCommandTagsProvider : MongoCommandTagsProvider {
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.boot.docs.actuator.metrics.supported.mongodb.command
|
||||
|
||||
import io.micrometer.core.instrument.binder.mongodb.MongoCommandTagsProvider
|
||||
import io.micrometer.binder.mongodb.MongoCommandTagsProvider
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
|
||||
@@ -28,4 +28,4 @@ class MyCommandTagsProviderConfiguration {
|
||||
return CustomCommandTagsProvider()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
package org.springframework.boot.docs.actuator.metrics.supported.mongodb.connectionpool
|
||||
|
||||
import com.mongodb.event.ConnectionPoolCreatedEvent
|
||||
import io.micrometer.binder.mongodb.MongoConnectionPoolTagsProvider
|
||||
import io.micrometer.core.instrument.Tag
|
||||
import io.micrometer.core.instrument.binder.mongodb.MongoConnectionPoolTagsProvider
|
||||
|
||||
class CustomConnectionPoolTagsProvider : MongoConnectionPoolTagsProvider {
|
||||
|
||||
@@ -26,4 +26,4 @@ class CustomConnectionPoolTagsProvider : MongoConnectionPoolTagsProvider {
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.boot.docs.actuator.metrics.supported.mongodb.connectionpool
|
||||
|
||||
import io.micrometer.core.instrument.binder.mongodb.MongoConnectionPoolTagsProvider
|
||||
import io.micrometer.binder.mongodb.MongoConnectionPoolTagsProvider
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
|
||||
@@ -28,4 +28,4 @@ class MyConnectionPoolTagsProviderConfiguration {
|
||||
return CustomConnectionPoolTagsProvider()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user