Converted MilliSpan to Span. Removed the interface

This commit is contained in:
Marcin Grzejszczak
2016-01-19 16:36:50 +01:00
committed by Marcin Grzejszczak
parent b758008419
commit d5b523d021
62 changed files with 614 additions and 714 deletions

View File

@@ -93,7 +93,7 @@ ApplicationListener<EmbeddedServletContainerInitializedEvent> {
@SneakyThrows
@RequestMapping("/traced")
public String traced() {
Span trace = this.tracer.startTrace("customTraceEndpoint",
Span span = this.tracer.startTrace("customTraceEndpoint",
new AlwaysSampler());
int millis = random.nextInt(1000);
log.info("Sleeping for {} millis", millis);
@@ -102,7 +102,7 @@ ApplicationListener<EmbeddedServletContainerInitializedEvent> {
String s = this.restTemplate.getForObject("http://localhost:" + this.port
+ "/call", String.class);
this.tracer.close(trace);
this.tracer.close(span);
return "traced/" + s;
}