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
Fields Modifier and Type Field Description private SpanData.TimedEvents<Annotation>
annotations
private SpanData.Attributes
attributes
private java.lang.Integer
childSpanCount
private SpanContext
context
private Timestamp
endTimestamp
private java.lang.Boolean
hasRemoteParent
private Span.Kind
kind
private SpanData.Links
links
private SpanData.TimedEvents<MessageEvent>
messageEvents
private java.lang.String
name
private SpanId
parentSpanId
private Timestamp
startTimestamp
private Status
status
-
Constructor Summary
Constructors Constructor Description AutoValue_SpanData(SpanContext context, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, java.lang.String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<MessageEvent> messageEvents, SpanData.Links links, java.lang.Integer childSpanCount, Status status, Timestamp endTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
SpanData.TimedEvents<Annotation>
getAnnotations()
Returns the annotations recorded for thisSpan
.SpanData.Attributes
getAttributes()
Returns the attributes recorded for thisSpan
.java.lang.Integer
getChildSpanCount()
Returns the number of child spans that were generated while theSpan
was running.SpanContext
getContext()
Returns theSpanContext
associated with thisSpan
.Timestamp
getEndTimestamp()
Returns the endTimestamp
ornull
if theSpan
is still active.java.lang.Boolean
getHasRemoteParent()
Returnstrue
if the parent is on a different process.Span.Kind
getKind()
Returns the kind of thisSpan
.SpanData.Links
getLinks()
Returns links recorded for thisSpan
.SpanData.TimedEvents<MessageEvent>
getMessageEvents()
Returns message events recorded for thisSpan
.java.lang.String
getName()
Returns the name of thisSpan
.SpanId
getParentSpanId()
Returns the parentSpanId
ornull
if theSpan
is a rootSpan
.Timestamp
getStartTimestamp()
Returns the startTimestamp
of thisSpan
.Status
getStatus()
Returns theStatus
ornull
ifSpan
is still active.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class io.opencensus.trace.export.SpanData
create, create, getNetworkEvents
-
-
-
-
Field Detail
-
context
private final SpanContext context
-
parentSpanId
private final SpanId parentSpanId
-
hasRemoteParent
private final java.lang.Boolean hasRemoteParent
-
name
private final java.lang.String name
-
kind
private final Span.Kind kind
-
startTimestamp
private final Timestamp startTimestamp
-
attributes
private final SpanData.Attributes attributes
-
annotations
private final SpanData.TimedEvents<Annotation> annotations
-
messageEvents
private final SpanData.TimedEvents<MessageEvent> messageEvents
-
links
private final SpanData.Links links
-
childSpanCount
private final java.lang.Integer childSpanCount
-
status
private final Status status
-
endTimestamp
private final Timestamp endTimestamp
-
-
Constructor Detail
-
AutoValue_SpanData
AutoValue_SpanData(SpanContext context, @Nullable SpanId parentSpanId, @Nullable java.lang.Boolean hasRemoteParent, java.lang.String name, @Nullable Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<MessageEvent> messageEvents, SpanData.Links links, @Nullable java.lang.Integer childSpanCount, @Nullable Status status, @Nullable Timestamp endTimestamp)
-
-
Method Detail
-
getContext
public SpanContext getContext()
Description copied from class:SpanData
Returns theSpanContext
associated with thisSpan
.- Specified by:
getContext
in classSpanData
- Returns:
- the
SpanContext
associated with thisSpan
.
-
getParentSpanId
@Nullable public SpanId 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
@Nullable public java.lang.Boolean 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
public java.lang.String getName()
Description copied from class:SpanData
Returns the name of thisSpan
.
-
getKind
@Nullable public Span.Kind getKind()
Description copied from class:SpanData
Returns the kind of thisSpan
.
-
getStartTimestamp
public Timestamp getStartTimestamp()
Description copied from class:SpanData
Returns the startTimestamp
of thisSpan
.- Specified by:
getStartTimestamp
in classSpanData
- Returns:
- the start
Timestamp
of thisSpan
.
-
getAttributes
public SpanData.Attributes 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
public SpanData.TimedEvents<Annotation> 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
public SpanData.TimedEvents<MessageEvent> 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
public SpanData.Links getLinks()
Description copied from class:SpanData
Returns links recorded for thisSpan
.
-
getChildSpanCount
@Nullable public java.lang.Integer 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
@Nullable public Status getStatus()
Description copied from class:SpanData
Returns theStatus
ornull
ifSpan
is still active.
-
getEndTimestamp
@Nullable public Timestamp 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
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
-
-