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 TraceParamsDefaultTraceParams.private static final doubleprivate static final Samplerprivate static final intprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static TraceParams.Builderbuilder()abstract intReturns the global default max number ofAnnotationevents perSpan.abstract intReturns the global default max number of attributes perSpan.abstract intabstract intReturns the global default max number ofMessageEventevents perSpan.intDeprecated.abstract SamplerReturns the global defaultSampler.abstract TraceParams.BuilderReturns aTraceParams.Builderinitialized 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
-
-
Constructor Details
-
TraceParams
public TraceParams()
-
-
Method Details
-
getSampler
Returns the global defaultSampler. Used if noSampleris provided inSpanBuilder.setSampler(Sampler).- Returns:
- the global default
Sampler. - Since:
- 0.5
-
getMaxNumberOfAttributes
-
getMaxNumberOfAnnotations
public abstract int getMaxNumberOfAnnotations()Returns the global default max number ofAnnotationevents perSpan.- Returns:
- the global default max number of
Annotationevents perSpan. - Since:
- 0.5
-
getMaxNumberOfMessageEvents
public abstract int getMaxNumberOfMessageEvents()Returns the global default max number ofMessageEventevents perSpan.- Returns:
- the global default max number of
MessageEventevents perSpan. - Since:
- 0.12
-
getMaxNumberOfNetworkEvents
Deprecated.Returns the global default max number ofNetworkEventevents perSpan.- Returns:
- the global default max number of
NetworkEventevents perSpan. - Since:
- 0.5
-
getMaxNumberOfLinks
-
builder
-
toBuilder
Returns aTraceParams.Builderinitialized to the same property values as the current instance.- Returns:
- a
TraceParams.Builderinitialized to the same property values as the current instance. - Since:
- 0.5
-
getMaxNumberOfMessageEvents().