[#127] Added tests for parent-id propagation

fixes #127
This commit is contained in:
Marcin Grzejszczak
2016-02-22 12:03:16 +01:00
parent 7dfe93e02a
commit 08c99667c9
18 changed files with 75 additions and 60 deletions

View File

@@ -65,8 +65,8 @@ public class RequestSendingRunnable implements Runnable {
private RequestEntity<Void> requestWithTraceId() {
HttpHeaders headers = new HttpHeaders();
headers.add(Span.TRACE_ID_NAME, Span.toHex(this.traceId));
headers.add(Span.SPAN_ID_NAME, Span.toHex(this.spanId));
headers.add(Span.TRACE_ID_NAME, Span.idToHex(this.traceId));
headers.add(Span.SPAN_ID_NAME, Span.idToHex(this.spanId));
URI uri = URI.create(this.url);
RequestEntity<Void> requestEntity = new RequestEntity<>(headers, HttpMethod.GET, uri);
log.info("Request [" + requestEntity + "] is ready");