Package io.opencensus.trace.config
Class AutoValue_TraceParams
- java.lang.Object
-
- io.opencensus.trace.config.TraceParams
-
- io.opencensus.trace.config.AutoValue_TraceParams
-
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_TraceParams extends TraceParams
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
AutoValue_TraceParams.Builder
-
Field Summary
Fields Modifier and Type Field Description private int
maxNumberOfAnnotations
private int
maxNumberOfAttributes
private int
maxNumberOfLinks
private int
maxNumberOfMessageEvents
private Sampler
sampler
-
Fields inherited from class io.opencensus.trace.config.TraceParams
DEFAULT
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AutoValue_TraceParams(Sampler sampler, int maxNumberOfAttributes, int maxNumberOfAnnotations, int maxNumberOfMessageEvents, int maxNumberOfLinks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getMaxNumberOfAnnotations()
Returns the global default max number ofAnnotation
events perSpan
.int
getMaxNumberOfAttributes()
Returns the global default max number of attributes perSpan
.int
getMaxNumberOfLinks()
int
getMaxNumberOfMessageEvents()
Returns the global default max number ofMessageEvent
events perSpan
.Sampler
getSampler()
Returns the global defaultSampler
.int
hashCode()
TraceParams.Builder
toBuilder()
Returns aTraceParams.Builder
initialized to the same property values as the current instance.java.lang.String
toString()
-
Methods inherited from class io.opencensus.trace.config.TraceParams
getMaxNumberOfNetworkEvents
-
-
-
-
Field Detail
-
sampler
private final Sampler sampler
-
maxNumberOfAttributes
private final int maxNumberOfAttributes
-
maxNumberOfAnnotations
private final int maxNumberOfAnnotations
-
maxNumberOfMessageEvents
private final int maxNumberOfMessageEvents
-
maxNumberOfLinks
private final int maxNumberOfLinks
-
-
Constructor Detail
-
AutoValue_TraceParams
private AutoValue_TraceParams(Sampler sampler, int maxNumberOfAttributes, int maxNumberOfAnnotations, int maxNumberOfMessageEvents, int maxNumberOfLinks)
-
-
Method Detail
-
getSampler
public Sampler getSampler()
Description copied from class:TraceParams
Returns the global defaultSampler
. Used if noSampler
is provided inSpanBuilder.setSampler(Sampler)
.- Specified by:
getSampler
in classTraceParams
- Returns:
- the global default
Sampler
.
-
getMaxNumberOfAttributes
public int getMaxNumberOfAttributes()
Description copied from class:TraceParams
Returns the global default max number of attributes perSpan
.- Specified by:
getMaxNumberOfAttributes
in classTraceParams
- Returns:
- the global default max number of attributes per
Span
.
-
getMaxNumberOfAnnotations
public int getMaxNumberOfAnnotations()
Description copied from class:TraceParams
Returns the global default max number ofAnnotation
events perSpan
.- Specified by:
getMaxNumberOfAnnotations
in classTraceParams
- Returns:
- the global default max number of
Annotation
events perSpan
.
-
getMaxNumberOfMessageEvents
public int getMaxNumberOfMessageEvents()
Description copied from class:TraceParams
Returns the global default max number ofMessageEvent
events perSpan
.- Specified by:
getMaxNumberOfMessageEvents
in classTraceParams
- Returns:
- the global default max number of
MessageEvent
events perSpan
.
-
getMaxNumberOfLinks
public int getMaxNumberOfLinks()
Description copied from class:TraceParams
- Specified by:
getMaxNumberOfLinks
in classTraceParams
- Returns:
- the global default max number of
Link
entries perSpan
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public TraceParams.Builder toBuilder()
Description copied from class:TraceParams
Returns aTraceParams.Builder
initialized to the same property values as the current instance.- Specified by:
toBuilder
in classTraceParams
- Returns:
- a
TraceParams.Builder
initialized to the same property values as the current instance.
-
-