io.opentracing.tag.IntTag Java Examples

The following examples show how to use io.opentracing.tag.IntTag. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TagListenerTest.java    From opentracing-toolbox with MIT License 5 votes vote down vote up
@Test
void shouldDelegateSpanTag() {
    final Span span = unit.buildSpan("test").start()
            .setTag(new IntTag("k4"), 17);

    verify(listener).onTag(eq(span), tag("k4"), eq(17));
}
 
Example #2
Source File: TagInterceptorTest.java    From opentracing-toolbox with MIT License 4 votes vote down vote up
@Override
public <T> Collection<TagPair> intercept(final Tag<T> tag, final T value) {
    return singletonList(TagPair.of(new IntTag("v"), 1));
}