@Test public void testWithTagObject() { JaegerTracer.SpanBuilder spanBuilder = tracer.buildSpan("ndnd"); spanBuilder.withTag(new StringTag("stringTag"), "stringTagValue") .withTag(new IntTag("numberTag"), 1) .withTag(new BooleanTag("booleanTag"), true) .withTag(new AbstractTag<Object>("objectTag") { @Override public void set(Span span, Object tagValue) { } }, this); Span span = spanBuilder.start(); Map<String, Object> tags = ((JaegerSpan) span).getTags(); assertEquals("stringTagValue", tags.get("stringTag")); assertEquals(1, tags.get("numberTag")); assertEquals(true, tags.get("booleanTag")); assertEquals(this, tags.get("objectTag")); span.finish(); }
@Override public JaegerTracer.SpanBuilder buildSpan(String operationName) { return objectFactory.createSpanBuilder(this, operationName); }
JaegerTracer implements Tracer, Closeable { @Override public JaegerTracer.SpanBuilder buildSpan(String operationName) { return objectFactory.createSpanBuilder(this, operationName); } }
JaegerTracer implements Tracer, Closeable { @Override public JaegerTracer.SpanBuilder buildSpan(String operationName) { return objectFactory.createSpanBuilder(this, operationName); } protected  JaegerTracer(JaegerTracer.Builder builder); }
JaegerTracer implements Tracer, Closeable { @Override public JaegerTracer.SpanBuilder buildSpan(String operationName) { return objectFactory.createSpanBuilder(this, operationName); } protected  JaegerTracer(JaegerTracer.Builder builder); String getVersion(); Metrics getMetrics(); String getServiceName(); Map<String, ?> tags(); int getIpv4(); @Override ScopeManager scopeManager(); @Override Span activeSpan(); @Override JaegerTracer.SpanBuilder buildSpan(String operationName); @Override void inject(SpanContext spanContext, Format<T> format, T carrier); @Override JaegerSpanContext extract(Format<T> format, T carrier); @Override void close(); static String getVersionFromProperties(); boolean isUseTraceId128Bit(); @Override Scope activateSpan(Span span); }
JaegerTracer implements Tracer, Closeable { @Override public JaegerTracer.SpanBuilder buildSpan(String operationName) { return objectFactory.createSpanBuilder(this, operationName); } protected  JaegerTracer(JaegerTracer.Builder builder); String getVersion(); Metrics getMetrics(); String getServiceName(); Map<String, ?> tags(); int getIpv4(); @Override ScopeManager scopeManager(); @Override Span activeSpan(); @Override JaegerTracer.SpanBuilder buildSpan(String operationName); @Override void inject(SpanContext spanContext, Format<T> format, T carrier); @Override JaegerSpanContext extract(Format<T> format, T carrier); @Override void close(); static String getVersionFromProperties(); boolean isUseTraceId128Bit(); @Override Scope activateSpan(Span span);  }