Package io.opencensus.trace
Class AutoValue_EndSpanOptions
- java.lang.Object
-
- io.opencensus.trace.EndSpanOptions
-
- io.opencensus.trace.AutoValue_EndSpanOptions
-
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_EndSpanOptions extends EndSpanOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
AutoValue_EndSpanOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description private boolean
sampleToLocalSpanStore
private Status
status
-
Fields inherited from class io.opencensus.trace.EndSpanOptions
DEFAULT
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AutoValue_EndSpanOptions(boolean sampleToLocalSpanStore, Status status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
boolean
getSampleToLocalSpanStore()
Iftrue
this is equivalent with calling theSampledSpanStore.registerSpanNamesForCollection(Collection)
in advance for this span name.Status
getStatus()
Returns the status.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class io.opencensus.trace.EndSpanOptions
builder
-
-
-
-
Field Detail
-
sampleToLocalSpanStore
private final boolean sampleToLocalSpanStore
-
status
private final Status status
-
-
Constructor Detail
-
AutoValue_EndSpanOptions
private AutoValue_EndSpanOptions(boolean sampleToLocalSpanStore, @Nullable Status status)
-
-
Method Detail
-
getSampleToLocalSpanStore
@ExperimentalApi public boolean getSampleToLocalSpanStore()
Description copied from class:EndSpanOptions
Iftrue
this is equivalent with calling theSampledSpanStore.registerSpanNamesForCollection(Collection)
in advance for this span name.- Specified by:
getSampleToLocalSpanStore
in classEndSpanOptions
- Returns:
true
if the name of theSpan
should be registered to theio.opencensus.trace.export.SampledSpanStore
.
-
getStatus
@Nullable public Status getStatus()
Description copied from class:EndSpanOptions
Returns the status.If
null
then theSpan
will record theStatus
set viaSpan.setStatus(Status)
or the defaultStatus.OK
if no status was set.- Specified by:
getStatus
in classEndSpanOptions
- Returns:
- the status.
-
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
-
-