This commit is contained in:
Phillip Webb
2021-04-06 14:59:13 -07:00
parent e7314623cb
commit 4b05dbf4a2
4 changed files with 7 additions and 6 deletions

View File

@@ -16,7 +16,6 @@
package org.springframework.boot.docs.productionreadyfeatures.metrics.mongo;
// tag::code[]
import com.mongodb.event.CommandEvent;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.mongodb.MongoMetricsCommandTagsProvider;
@@ -33,7 +32,7 @@ public class SampleCommandTagsProviderConfiguration {
}
}
// end::code[]
// @chomp:file
class CustomCommandTagsProvider implements MongoMetricsCommandTagsProvider {

View File

@@ -28,9 +28,8 @@ public class ExceptionHandlingController {
@GetMapping("/profile")
public Rendering userProfile() {
// ..
throw new IllegalStateException();
// ...
throw new IllegalStateException();
}
@ExceptionHandler(IllegalStateException.class)