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>annotationsprivate SpanData.Attributesattributesprivate java.lang.IntegerchildSpanCountprivate SpanContextcontextprivate TimestampendTimestampprivate java.lang.BooleanhasRemoteParentprivate Span.Kindkindprivate SpanData.Linkslinksprivate SpanData.TimedEvents<MessageEvent>messageEventsprivate java.lang.Stringnameprivate SpanIdparentSpanIdprivate TimestampstartTimestampprivate Statusstatus
-
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 booleanequals(java.lang.Object o)SpanData.TimedEvents<Annotation>getAnnotations()Returns the annotations recorded for thisSpan.SpanData.AttributesgetAttributes()Returns the attributes recorded for thisSpan.java.lang.IntegergetChildSpanCount()Returns the number of child spans that were generated while theSpanwas running.SpanContextgetContext()Returns theSpanContextassociated with thisSpan.TimestampgetEndTimestamp()Returns the endTimestampornullif theSpanis still active.java.lang.BooleangetHasRemoteParent()Returnstrueif the parent is on a different process.Span.KindgetKind()Returns the kind of thisSpan.SpanData.LinksgetLinks()Returns links recorded for thisSpan.SpanData.TimedEvents<MessageEvent>getMessageEvents()Returns message events recorded for thisSpan.java.lang.StringgetName()Returns the name of thisSpan.SpanIdgetParentSpanId()Returns the parentSpanIdornullif theSpanis a rootSpan.TimestampgetStartTimestamp()Returns the startTimestampof thisSpan.StatusgetStatus()Returns theStatusornullifSpanis still active.inthashCode()java.lang.StringtoString()-
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:SpanDataReturns theSpanContextassociated with thisSpan.- Specified by:
getContextin classSpanData- Returns:
- the
SpanContextassociated with thisSpan.
-
getParentSpanId
@Nullable public SpanId getParentSpanId()
Description copied from class:SpanDataReturns the parentSpanIdornullif theSpanis a rootSpan.- Specified by:
getParentSpanIdin classSpanData- Returns:
- the parent
SpanIdornullif theSpanis a rootSpan.
-
getHasRemoteParent
@Nullable public java.lang.Boolean getHasRemoteParent()
Description copied from class:SpanDataReturnstrueif the parent is on a different process.nullif this is a root span.- Specified by:
getHasRemoteParentin classSpanData- Returns:
trueif the parent is on a different process.nullif this is a root span.
-
getName
public java.lang.String getName()
Description copied from class:SpanDataReturns the name of thisSpan.
-
getKind
@Nullable public Span.Kind getKind()
Description copied from class:SpanDataReturns the kind of thisSpan.
-
getStartTimestamp
public Timestamp getStartTimestamp()
Description copied from class:SpanDataReturns the startTimestampof thisSpan.- Specified by:
getStartTimestampin classSpanData- Returns:
- the start
Timestampof thisSpan.
-
getAttributes
public SpanData.Attributes getAttributes()
Description copied from class:SpanDataReturns the attributes recorded for thisSpan.- Specified by:
getAttributesin classSpanData- Returns:
- the attributes recorded for this
Span.
-
getAnnotations
public SpanData.TimedEvents<Annotation> getAnnotations()
Description copied from class:SpanDataReturns the annotations recorded for thisSpan.- Specified by:
getAnnotationsin classSpanData- Returns:
- the annotations recorded for this
Span.
-
getMessageEvents
public SpanData.TimedEvents<MessageEvent> getMessageEvents()
Description copied from class:SpanDataReturns message events recorded for thisSpan.- Specified by:
getMessageEventsin classSpanData- Returns:
- message events recorded for this
Span.
-
getLinks
public SpanData.Links getLinks()
Description copied from class:SpanDataReturns links recorded for thisSpan.
-
getChildSpanCount
@Nullable public java.lang.Integer getChildSpanCount()
Description copied from class:SpanDataReturns the number of child spans that were generated while theSpanwas running. If notnullallows service implementations to detect missing child spans.This information is not always available.
- Specified by:
getChildSpanCountin classSpanData- Returns:
- the number of child spans that were generated while the
Spanwas running.
-
getStatus
@Nullable public Status getStatus()
Description copied from class:SpanDataReturns theStatusornullifSpanis still active.
-
getEndTimestamp
@Nullable public Timestamp getEndTimestamp()
Description copied from class:SpanDataReturns the endTimestampornullif theSpanis still active.- Specified by:
getEndTimestampin classSpanData- Returns:
- the end
Timestampornullif theSpanis still active.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-