@Immutable public abstract class TraceParams extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TraceParams.Builder
A
Builder class for TraceParams . |
Modifier and Type | Field and Description |
---|---|
static TraceParams |
DEFAULT
Default
TraceParams . |
Constructor and Description |
---|
TraceParams() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getMaxNumberOfAnnotations()
Returns the global default max number of
Annotation events per Span . |
abstract int |
getMaxNumberOfAttributes()
Returns the global default max number of attributes per
Span . |
abstract int |
getMaxNumberOfLinks()
|
abstract int |
getMaxNumberOfMessageEvents()
Returns the global default max number of
MessageEvent events per Span . |
int |
getMaxNumberOfNetworkEvents()
Deprecated.
Use
getMaxNumberOfMessageEvents . |
abstract Sampler |
getSampler()
Returns the global default
Sampler . |
abstract TraceParams.Builder |
toBuilder()
Returns a
TraceParams.Builder initialized to the same property values as the current instance. |
public static final TraceParams DEFAULT
TraceParams
.public abstract Sampler getSampler()
Sampler
. Used if no Sampler
is provided in SpanBuilder.setSampler(Sampler)
.Sampler
.public abstract int getMaxNumberOfAttributes()
Span
.Span
.public abstract int getMaxNumberOfAnnotations()
Annotation
events per Span
.Annotation
events per Span
.public abstract int getMaxNumberOfMessageEvents()
MessageEvent
events per Span
.MessageEvent
events per Span
.@Deprecated public int getMaxNumberOfNetworkEvents()
getMaxNumberOfMessageEvents
.NetworkEvent
events per
Span
.NetworkEvent
events per Span
.public abstract int getMaxNumberOfLinks()
Link
entries per Span
.public abstract TraceParams.Builder toBuilder()
TraceParams.Builder
initialized to the same property values as the current instance.TraceParams.Builder
initialized to the same property values as the current instance.