use of com.google.devtools.cloudtrace.v2.Span in project zipkin by openzipkin.
the class ITSearchEnabledFalse method getRemoteServiceNames_isEmpty.
@Test
protected void getRemoteServiceNames_isEmpty(TestInfo testInfo) throws Exception {
String testSuffix = testSuffix(testInfo);
Span span = spanBuilder(testSuffix).build();
accept(span);
assertThat(names().getRemoteServiceNames(span.localServiceName()).execute()).isEmpty();
}
use of com.google.devtools.cloudtrace.v2.Span in project zipkin by openzipkin.
the class ITServiceAndSpanNames method getSpanNames_serviceNameGoesLowercase.
@Test
protected void getSpanNames_serviceNameGoesLowercase(TestInfo testInfo) throws Exception {
String testSuffix = testSuffix(testInfo);
Span span = spanBuilder(testSuffix).build();
accept(span);
String uppercase = span.localServiceName().toUpperCase(Locale.ROOT);
assertThat(names().getSpanNames(uppercase).execute()).containsExactly(span.name());
}
use of com.google.devtools.cloudtrace.v2.Span in project zipkin by openzipkin.
the class ITServiceAndSpanNames method getSpanNames.
@Test
protected void getSpanNames(TestInfo testInfo) throws Exception {
String testSuffix = testSuffix(testInfo);
Span span = spanBuilder(testSuffix).build();
assertThat(names().getSpanNames(span.localServiceName()).execute()).isEmpty();
accept(span);
assertThat(names().getSpanNames(span.localServiceName() + 1).execute()).isEmpty();
assertThat(names().getSpanNames(span.localServiceName()).execute()).contains(span.name());
}
use of com.google.devtools.cloudtrace.v2.Span in project zipkin by openzipkin.
the class ITServiceAndSpanNames method getRemoteServiceNames.
@Test
protected void getRemoteServiceNames(TestInfo testInfo) throws Exception {
String testSuffix = testSuffix(testInfo);
Span clientSpan = newClientSpan(testSuffix);
assertThat(names().getRemoteServiceNames(clientSpan.localServiceName()).execute()).isEmpty();
accept(clientSpan);
assertThat(names().getRemoteServiceNames(clientSpan.localServiceName() + 1).execute()).isEmpty();
assertThat(names().getRemoteServiceNames(clientSpan.localServiceName()).execute()).contains(clientSpan.remoteServiceName());
}
use of com.google.devtools.cloudtrace.v2.Span in project zipkin by openzipkin.
the class ITServiceAndSpanNames method getLocalServiceNames_includesLocalServiceName.
@Test
protected void getLocalServiceNames_includesLocalServiceName(TestInfo testInfo) throws Exception {
String testSuffix = testSuffix(testInfo);
Span clientSpan = newClientSpan(testSuffix);
assertThat(names().getServiceNames().execute()).isEmpty();
accept(clientSpan);
assertThat(names().getServiceNames().execute()).containsOnly(clientSpan.localServiceName());
}
Aggregations