public static class DefaultQueryBusSpanFactory.Builder extends Object
DefaultQueryBusSpanFactory
. The default values are:
distributedInSameTrace
defaults to true
spanFactory
is a required field and should be provided.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultQueryBusSpanFactory |
build()
Initializes a
DefaultQueryBusSpanFactory as specified through this Builder. |
DefaultQueryBusSpanFactory.Builder |
distributedInSameTrace(boolean distributedInSameTrace)
Sets whether the distributed query should be in the same trace as the parent.
|
DefaultQueryBusSpanFactory.Builder |
spanFactory(SpanFactory spanFactory)
Sets the
SpanFactory to use to create the spans. |
protected void |
validate()
Validates whether the fields contained in this builder are set accordingly.
|
public DefaultQueryBusSpanFactory.Builder spanFactory(SpanFactory spanFactory)
SpanFactory
to use to create the spans. This is a required field.spanFactory
- The SpanFactory
to use to create the spans.public DefaultQueryBusSpanFactory.Builder distributedInSameTrace(boolean distributedInSameTrace)
true
.distributedInSameTrace
- whether the distributed query should be in the same trace as the parent.protected void validate()
public DefaultQueryBusSpanFactory build()
DefaultQueryBusSpanFactory
as specified through this Builder.DefaultQueryBusSpanFactory
as specified through this Builder.Copyright © 2010–2024. All rights reserved.