Class TraceParams
java.lang.Object
io.opencensus.trace.config.TraceParams
Class that holds global trace parameters.
- Since:
- 0.5
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract 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
-
-
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
-
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().