Package io.opencensus.trace.config
Class TraceParams
- java.lang.Object
-
- io.opencensus.trace.config.TraceParams
-
- Direct Known Subclasses:
AutoValue_TraceParams
@Immutable public abstract class TraceParams extends java.lang.ObjectClass that holds global trace parameters.- Since:
- 0.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTraceParams.BuilderABuilderclass forTraceParams.
-
Field Summary
Fields Modifier and Type Field Description static TraceParamsDEFAULTDefaultTraceParams.private static doubleDEFAULT_PROBABILITYprivate static SamplerDEFAULT_SAMPLERprivate static intDEFAULT_SPAN_MAX_NUM_ANNOTATIONSprivate static intDEFAULT_SPAN_MAX_NUM_ATTRIBUTESprivate static intDEFAULT_SPAN_MAX_NUM_LINKSprivate static intDEFAULT_SPAN_MAX_NUM_MESSAGE_EVENTS
-
Constructor Summary
Constructors Constructor Description TraceParams()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static TraceParams.Builderbuilder()abstract intgetMaxNumberOfAnnotations()Returns the global default max number ofAnnotationevents perSpan.abstract intgetMaxNumberOfAttributes()Returns the global default max number of attributes perSpan.abstract intgetMaxNumberOfLinks()abstract intgetMaxNumberOfMessageEvents()Returns the global default max number ofMessageEventevents perSpan.intgetMaxNumberOfNetworkEvents()Deprecated.abstract SamplergetSampler()Returns the global defaultSampler.abstract TraceParams.BuildertoBuilder()Returns aTraceParams.Builderinitialized to the same property values as the current instance.
-
-
-
Field Detail
-
DEFAULT_PROBABILITY
private static final double DEFAULT_PROBABILITY
- See Also:
- Constant Field Values
-
DEFAULT_SAMPLER
private static final Sampler DEFAULT_SAMPLER
-
DEFAULT_SPAN_MAX_NUM_ATTRIBUTES
private static final int DEFAULT_SPAN_MAX_NUM_ATTRIBUTES
- See Also:
- Constant Field Values
-
DEFAULT_SPAN_MAX_NUM_ANNOTATIONS
private static final int DEFAULT_SPAN_MAX_NUM_ANNOTATIONS
- See Also:
- Constant Field Values
-
DEFAULT_SPAN_MAX_NUM_MESSAGE_EVENTS
private static final int DEFAULT_SPAN_MAX_NUM_MESSAGE_EVENTS
- See Also:
- Constant Field Values
-
DEFAULT_SPAN_MAX_NUM_LINKS
private static final int DEFAULT_SPAN_MAX_NUM_LINKS
- See Also:
- Constant Field Values
-
DEFAULT
public static final TraceParams DEFAULT
DefaultTraceParams.- Since:
- 0.5
-
-
Method Detail
-
getSampler
public abstract Sampler getSampler()
Returns the global defaultSampler. Used if noSampleris 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 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 public int getMaxNumberOfNetworkEvents()
Deprecated.Returns the global default max number ofNetworkEventevents perSpan.- Returns:
- the global default max number of
NetworkEventevents perSpan. - Since:
- 0.5
-
getMaxNumberOfLinks
public abstract int getMaxNumberOfLinks()
- Returns:
- the global default max number of
Linkentries perSpan. - Since:
- 0.5
-
builder
private static TraceParams.Builder builder()
-
toBuilder
public abstract TraceParams.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
-
-