Skip to content

Commit

Permalink
Add smoke test for Logback MDC instrumentation - Spring Boot app chan…
Browse files Browse the repository at this point in the history
…ges (#1228)
  • Loading branch information
Mateusz Rzeszutek authored Sep 21, 2020
1 parent b240cf9 commit c45a8cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@
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();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
logging.level.root=WARN
logging.level.root=WARN
logging.level.io.opentelemetry=INFO
logging.pattern.console=%-5level [%t] %C{1.}: %msg traceId=%X{traceId}%n

0 comments on commit c45a8cd

Please sign in to comment.