public static class SpanBuilderFactory.NoopSpanBuilder extends SpanBuilderFactory.SpanBuilder
| Constructor | Description |
|---|---|
NoopSpanBuilder(SpanPostProcessor processor,
io.honeycomb.libhoney.transport.batch.ClockProvider clock,
TraceIdProvider idProvider,
TraceSampler<? super String> traceSampler) |
| Modifier and Type | Method | Description |
|---|---|---|
Span |
build() |
Spans returned by this method are subject to sampling based on their
traceId. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddField, addFields, getClock, getFields, getParentContext, getProcessor, getServiceName, getSpanId, getSpanName, getStartTime, getTimestamp, setParentContext, setServiceName, setSpanId, setSpanName, setTimespublic NoopSpanBuilder(SpanPostProcessor processor, io.honeycomb.libhoney.transport.batch.ClockProvider clock, TraceIdProvider idProvider, TraceSampler<? super String> traceSampler)
public Span build()
SpanBuilderFactory.SpanBuildertraceId. If the global sampler
decides the trace is not to be sampled then it will return a "noop" Span (see Span.isNoop().
If the SpanPostProcessor has been configured with a "sampling hook", then for all Spans on a sampled
trace, another sampling decision is taken when they are closed. In other words,
the Spans are passed to the sampling hook just before they are about to be sent.
build in class SpanBuilderFactory.SpanBuilderCopyright © 2019–2020 Honeycomb. All rights reserved.