Package io.opencensus.trace.config
Class TraceParams
java.lang.Object
io.opencensus.trace.config.TraceParams
- Direct Known Subclasses:
AutoValue_TraceParams
Class that holds global trace parameters.
- Since:
- 0.5
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TraceParams
DefaultTraceParams
.private static final double
private static final Sampler
private static final int
private static final int
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static TraceParams.Builder
builder()
abstract int
Returns the global default max number ofAnnotation
events perSpan
.abstract int
Returns the global default max number of attributes perSpan
.abstract int
abstract int
Returns the global default max number ofMessageEvent
events perSpan
.int
Deprecated.abstract Sampler
Returns the global defaultSampler
.abstract TraceParams.Builder
Returns aTraceParams.Builder
initialized to the same property values as the current instance.
-
Field Details
-
DEFAULT_PROBABILITY
private static final double DEFAULT_PROBABILITY- See Also:
-
DEFAULT_SAMPLER
-
DEFAULT_SPAN_MAX_NUM_ATTRIBUTES
private static final int DEFAULT_SPAN_MAX_NUM_ATTRIBUTES- See Also:
-
DEFAULT_SPAN_MAX_NUM_ANNOTATIONS
private static final int DEFAULT_SPAN_MAX_NUM_ANNOTATIONS- See Also:
-
DEFAULT_SPAN_MAX_NUM_MESSAGE_EVENTS
private static final int DEFAULT_SPAN_MAX_NUM_MESSAGE_EVENTS- See Also:
-
DEFAULT_SPAN_MAX_NUM_LINKS
private static final int DEFAULT_SPAN_MAX_NUM_LINKS- See Also:
-
DEFAULT
DefaultTraceParams
.- Since:
- 0.5
-
-
Constructor Details
-
TraceParams
public TraceParams()
-
-
Method Details
-
getSampler
Returns the global defaultSampler
. Used if noSampler
is provided inSpanBuilder.setSampler(Sampler)
.- Returns:
- the global default
Sampler
. - Since:
- 0.5
-
getMaxNumberOfAttributes
public abstract int getMaxNumberOfAttributes()Returns the global default max number of attributes perSpan
.- Returns:
- the global default max number of attributes per
Span
. - Since:
- 0.5
-
getMaxNumberOfAnnotations
public abstract int getMaxNumberOfAnnotations()Returns the global default max number ofAnnotation
events perSpan
.- Returns:
- the global default max number of
Annotation
events perSpan
. - Since:
- 0.5
-
getMaxNumberOfMessageEvents
public abstract int getMaxNumberOfMessageEvents()Returns the global default max number ofMessageEvent
events perSpan
.- Returns:
- the global default max number of
MessageEvent
events perSpan
. - Since:
- 0.12
-
getMaxNumberOfNetworkEvents
Deprecated.Returns the global default max number ofNetworkEvent
events perSpan
.- Returns:
- the global default max number of
NetworkEvent
events perSpan
. - Since:
- 0.5
-
getMaxNumberOfLinks
public abstract int getMaxNumberOfLinks()- Returns:
- the global default max number of
Link
entries perSpan
. - Since:
- 0.5
-
builder
-
toBuilder
Returns aTraceParams.Builder
initialized to the same property values as the current instance.- Returns:
- a
TraceParams.Builder
initialized to the same property values as the current instance. - Since:
- 0.5
-
getMaxNumberOfMessageEvents()
.