use of zipkin2.proto3.Span in project brave by openzipkin.
the class ITSpanCustomizingAsyncHandlerInterceptor method addsControllerTags.
@Test
public void addsControllerTags() throws Exception {
get("/foo");
Span span = takeSpan();
assertThat(span.tags()).containsEntry("mvc.controller.class", "TestController").containsEntry("mvc.controller.method", "foo");
}
use of zipkin2.proto3.Span in project brave by openzipkin.
the class ITTracingAsyncHandlerInterceptor method tagsHandler.
@Test
public void tagsHandler() throws Exception {
get("/foo");
Span span = takeSpan();
assertThat(span.tags()).containsEntry("mvc.controller.class", "TestController").containsEntry("mvc.controller.method", "foo");
}
use of zipkin2.proto3.Span in project brave by openzipkin.
the class ITTracingHandlerInterceptor method tagsHandler.
@Test
public void tagsHandler() throws Exception {
get("/foo");
Span span = takeSpan();
assertThat(span.tags()).containsEntry("mvc.controller.class", "TestController").containsEntry("mvc.controller.method", "foo");
}
use of zipkin2.proto3.Span in project brave by openzipkin.
the class ITTracingFilter_Consumer method onTransportException_addsErrorTag.
@Test
public void onTransportException_addsErrorTag() throws Exception {
server.stop();
try {
client.get().sayHello("jorge");
failBecauseExceptionWasNotThrown(RpcException.class);
} catch (RpcException e) {
}
Span span = spans.take();
assertThat(span.tags().get("error")).contains("RemotingException");
}
use of zipkin2.proto3.Span in project brave by openzipkin.
the class ITTracingFilter_Consumer method defaultSpanNameIsMethodName.
@Test
public void defaultSpanNameIsMethodName() throws Exception {
client.get().sayHello("jorge");
Span span = spans.take();
assertThat(span.name()).isEqualTo("greeterservice/sayhello");
}
Aggregations