Modifier and Type | Class | Description |
---|---|---|
static class |
SpanBuilderFactory.NoopSpanBuilder |
|
static class |
SpanBuilderFactory.SpanBuilder |
Builder to capture various attributes to initialise a Span with.
|
Constructor | Description |
---|---|
SpanBuilderFactory(SpanPostProcessor processor,
io.honeycomb.libhoney.transport.batch.ClockProvider clock,
TraceIdProvider idProvider,
TraceSampler<? super String> globalSampler) |
Modifier and Type | Method | Description |
---|---|---|
SpanBuilderFactory.SpanBuilder |
createBuilder() |
Creates a SpanBuilder instance that allows the customisation of Spans with various attributes.
|
SpanBuilderFactory.SpanBuilder |
createBuilderFrom(Span originalSpan) |
Creates a SpanBuilder instance initialised with attributes from the
originalSpan argument, which then
allows the attributes to be overwritten. |
SpanBuilderFactory.SpanBuilder |
createBuilderFromParent(Span parentSpan) |
Creates a Span builder instance initialised so it forms a child-parent relationship with
parentSpan
argument. |
String |
generateId() |
|
io.honeycomb.libhoney.transport.batch.ClockProvider |
getClock() |
|
SpanPostProcessor |
getProcessor() |
|
TraceSampler<? super String> |
getSampler() |
public SpanBuilderFactory(SpanPostProcessor processor, io.honeycomb.libhoney.transport.batch.ClockProvider clock, TraceIdProvider idProvider, TraceSampler<? super String> globalSampler)
public SpanBuilderFactory.SpanBuilder createBuilder()
The returned builder must be configured with at least:
public SpanBuilderFactory.SpanBuilder createBuilderFrom(Span originalSpan)
originalSpan
argument, which then
allows the attributes to be overwritten.
This method is useful when Spans need to be handled manually, typically for custom framework instrumentation.
The returned builder can be built immediately without having to set any properties.
originalSpan
- to copy attributes frompublic SpanBuilderFactory.SpanBuilder createBuilderFromParent(Span parentSpan)
parentSpan
argument. This method is useful when Spans need to be handled manually, typically for custom framework
instrumentation.
The returned builder must be configured with at least:
parentSpan
- to link to thepublic String generateId()
public SpanPostProcessor getProcessor()
public io.honeycomb.libhoney.transport.batch.ClockProvider getClock()
public TraceSampler<? super String> getSampler()
Copyright © 2019–2020 Honeycomb. All rights reserved.