Polish "Add micrometer tracing documentation"

This commit is contained in:
Moritz Halbritter
2022-10-21 13:16:11 +02:00
parent bed313746b
commit ff6d9aa881
2 changed files with 33 additions and 32 deletions

View File

@@ -16,6 +16,9 @@
package org.springframework.boot.docs.actuator.micrometertracing.gettingstarted;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -25,8 +28,11 @@ import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
public class MyApplication {
private static final Log logger = LogFactory.getLog(MyApplication.class);
@RequestMapping("/")
String home() {
logger.info("home() has been called");
return "Hello World!";
}