use of com.palantir.tracing.TestTracing in project dialogue by palantir.
the class AbstractChannelTest method requestAreTraced.
@Test
@TestTracing(snapshot = true)
public void requestAreTraced() throws Exception {
endpoint.method = HttpMethod.POST;
ListenableFuture<Response> result = channel.execute(endpoint, request);
RecordedRequest recorded = server.takeRequest();
assertThat(recorded.getHeader("X-B3-TraceId")).isNotEmpty();
assertThat(result.get().code()).isEqualTo(200);
}
Aggregations