Add smoke test for Logback MDC instrumentation - Spring Boot app changes
MODIFY
smoke-tests/springboot/src/main/java/io/opentelemetry/smoketest/springboot/controller/WebController.java
smoke-tests/springboot/src/main/java/io/opentelemetry/smoketest/springboot/controller/WebController.java
package io.opentelemetry.smoketest.springboot.controller;
import io.opentelemetry.extensions.auto.annotations.WithSpan;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class WebController {
+ private static final Logger LOGGER = LoggerFactory.getLogger(WebController.class);
+
@RequestMapping("/greeting")
public String greeting() {
+ LOGGER.info("HTTP request received");
return withSpan();
}

MODIFY
smoke-tests/springboot/src/main/resources/application.properties
smoke-tests/springboot/src/main/resources/application.properties
logging.level.root=WARN
+logging.level.io.opentelemetry=INFO
+logging.pattern.console=%-5level [%t] %C{1.}: %msg traceId=%X{traceId}%n
\ No newline at end of file

Add smoke test for Logback MDC instrumentation - Spring Boot app changes (#1228)