Package io.opencensus.trace.export
Class AutoValue_SpanData
java.lang.Object
io.opencensus.trace.export.SpanData
io.opencensus.trace.export.AutoValue_SpanData
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SpanData
extends SpanData
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.trace.export.SpanData
SpanData.Attributes, SpanData.Links, SpanData.TimedEvent<T>, SpanData.TimedEvents<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpanData.TimedEvents
<Annotation> private final SpanData.Attributes
private final Integer
private final SpanContext
private final Timestamp
private final Boolean
private final Span.Kind
private final SpanData.Links
private final SpanData.TimedEvents
<MessageEvent> private final String
private final SpanId
private final Timestamp
private final Status
-
Constructor Summary
ConstructorsConstructorDescriptionAutoValue_SpanData
(SpanContext context, SpanId parentSpanId, Boolean hasRemoteParent, String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<MessageEvent> messageEvents, SpanData.Links links, Integer childSpanCount, Status status, Timestamp endTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the annotations recorded for thisSpan
.Returns the attributes recorded for thisSpan
.Returns the number of child spans that were generated while theSpan
was running.Returns theSpanContext
associated with thisSpan
.Returns the endTimestamp
ornull
if theSpan
is still active.Returnstrue
if the parent is on a different process.getKind()
Returns the kind of thisSpan
.getLinks()
Returns links recorded for thisSpan
.Returns message events recorded for thisSpan
.getName()
Returns the name of thisSpan
.Returns the parentSpanId
ornull
if theSpan
is a rootSpan
.Returns the startTimestamp
of thisSpan
.Returns theStatus
ornull
ifSpan
is still active.int
hashCode()
toString()
Methods inherited from class io.opencensus.trace.export.SpanData
create, create, getNetworkEvents
-
Field Details
-
context
-
parentSpanId
-
hasRemoteParent
-
name
-
kind
-
startTimestamp
-
attributes
-
annotations
-
messageEvents
-
links
-
childSpanCount
-
status
-
endTimestamp
-
-
Constructor Details
-
AutoValue_SpanData
AutoValue_SpanData(SpanContext context, @Nullable SpanId parentSpanId, @Nullable Boolean hasRemoteParent, String name, @Nullable Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<MessageEvent> messageEvents, SpanData.Links links, @Nullable Integer childSpanCount, @Nullable Status status, @Nullable Timestamp endTimestamp)
-
-
Method Details
-
getContext
Description copied from class:SpanData
Returns theSpanContext
associated with thisSpan
.- Specified by:
getContext
in classSpanData
- Returns:
- the
SpanContext
associated with thisSpan
.
-
getParentSpanId
Description copied from class:SpanData
Returns the parentSpanId
ornull
if theSpan
is a rootSpan
.- Specified by:
getParentSpanId
in classSpanData
- Returns:
- the parent
SpanId
ornull
if theSpan
is a rootSpan
.
-
getHasRemoteParent
Description copied from class:SpanData
Returnstrue
if the parent is on a different process.null
if this is a root span.- Specified by:
getHasRemoteParent
in classSpanData
- Returns:
true
if the parent is on a different process.null
if this is a root span.
-
getName
Description copied from class:SpanData
Returns the name of thisSpan
. -
getKind
Description copied from class:SpanData
Returns the kind of thisSpan
. -
getStartTimestamp
Description copied from class:SpanData
Returns the startTimestamp
of thisSpan
.- Specified by:
getStartTimestamp
in classSpanData
- Returns:
- the start
Timestamp
of thisSpan
.
-
getAttributes
Description copied from class:SpanData
Returns the attributes recorded for thisSpan
.- Specified by:
getAttributes
in classSpanData
- Returns:
- the attributes recorded for this
Span
.
-
getAnnotations
Description copied from class:SpanData
Returns the annotations recorded for thisSpan
.- Specified by:
getAnnotations
in classSpanData
- Returns:
- the annotations recorded for this
Span
.
-
getMessageEvents
Description copied from class:SpanData
Returns message events recorded for thisSpan
.- Specified by:
getMessageEvents
in classSpanData
- Returns:
- message events recorded for this
Span
.
-
getLinks
Description copied from class:SpanData
Returns links recorded for thisSpan
. -
getChildSpanCount
Description copied from class:SpanData
Returns the number of child spans that were generated while theSpan
was running. If notnull
allows service implementations to detect missing child spans.This information is not always available.
- Specified by:
getChildSpanCount
in classSpanData
- Returns:
- the number of child spans that were generated while the
Span
was running.
-
getStatus
Description copied from class:SpanData
Returns theStatus
ornull
ifSpan
is still active. -
getEndTimestamp
Description copied from class:SpanData
Returns the endTimestamp
ornull
if theSpan
is still active.- Specified by:
getEndTimestamp
in classSpanData
- Returns:
- the end
Timestamp
ornull
if theSpan
is still active.
-
toString
-
equals
-
hashCode
public int hashCode()
-