This commit is contained in:
Spencer Gibb
2015-12-10 10:33:21 -07:00
parent 2f35fc7966
commit 2d0ff8f436
18 changed files with 59 additions and 59 deletions

View File

@@ -96,7 +96,7 @@ ApplicationListener<EmbeddedServletContainerInitializedEvent> {
@SneakyThrows
@RequestMapping("/traced")
public String traced() {
Trace scope = this.traceManager.startSpan("customTraceEndpoint",
Trace trace = this.traceManager.startSpan("customTraceEndpoint",
new AlwaysSampler(), null);
final Random random = new Random();
int millis = random.nextInt(1000);
@@ -106,7 +106,7 @@ ApplicationListener<EmbeddedServletContainerInitializedEvent> {
String s = this.restTemplate.getForObject("http://localhost:" + this.port
+ "/call", String.class);
this.traceManager.close(scope);
this.traceManager.close(trace);
return "traced/" + s;
}