Adding more logs, fixing rest template based benchmark

This commit is contained in:
Marcin Grzejszczak
2020-07-22 12:42:35 +02:00
parent 3a00067a47
commit 4fb3edcb1d
3 changed files with 2 additions and 3 deletions

View File

@@ -63,8 +63,6 @@ public class SleuthBenchmarkingStreamApplication {
System.setProperty("spring.sleuth.reactor.instrumentation-type", "MANUAL");
System.setProperty("spring.sleuth.function.type", "simple");
ConfigurableApplicationContext context = SpringApplication.run(SleuthBenchmarkingStreamApplication.class, args);
System.out.println("PRess any key to continue");
System.in.read();
for (int i = 0; i < 1; i++) {
InputDestination input = context.getBean(InputDestination.class);
input.send(MessageBuilder.withPayload("hello".getBytes())

View File

@@ -1,4 +1,5 @@
logging.level:
org.springframework: ERROR
org.springframework.sleuth: ERROR
org.springframework.sleuth.benchmarks: INFO
brave: ERROR

View File

@@ -86,7 +86,7 @@ public class RestTemplateBenchmarkTests {
@Setup
public void setup() {
new SpringApplication(SleuthBenchmarkingSpringApp.class).run("--spring.jmx.enabled=false",
this.withSleuth = new SpringApplication(SleuthBenchmarkingSpringApp.class).run("--spring.jmx.enabled=false",
"--spring.application.name=withSleuth");
this.mockMvc = MockMvcBuilders.standaloneSetup(this.withSleuth.getBean(SleuthBenchmarkingSpringApp.class))
.build();