Package zipkin2.v1
Class V1Span
- java.lang.Object
-
- zipkin2.v1.V1Span
-
@Deprecated public final class V1Span extends java.lang.Object
Deprecated.new code should useSpan
.V1 spans are different than v2 especially as annotations repeat. Support is available to help migrate old code or allow for parsing older data formats.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
V1Span.Builder
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<V1Annotation>
annotations()
Deprecated.Same asSpan.annotations()
, except each may be associated withSpan.localEndpoint()
java.util.List<V1BinaryAnnotation>
binaryAnnotations()
Deprecated.Span.tags()
are allocated to binary annotations with aV1BinaryAnnotation.stringValue()
.java.lang.Boolean
debug()
Deprecated.Same asSpan.debug()
long
duration()
Deprecated.Same asSpan.durationAsLong()
boolean
equals(java.lang.Object o)
Deprecated.int
hashCode()
Deprecated.long
id()
Deprecated.Same asSpan.id()
except packed into a long.java.lang.String
name()
Deprecated.Same asSpan.name()
static V1Span.Builder
newBuilder()
Deprecated.long
parentId()
Deprecated.The parent'sid()
or zero if this the root span in a trace.java.util.Set<java.lang.String>
serviceNames()
Deprecated.Returns the distinctservice names
that logged to this span.long
timestamp()
Deprecated.Same asSpan.timestampAsLong()
long
traceId()
Deprecated.lower 64-bits of theSpan.traceId()
long
traceIdHigh()
Deprecated.When non-zero, the trace containing this span uses 128-bit trace identifiers.
-
-
-
Method Detail
-
traceIdHigh
public long traceIdHigh()
Deprecated.When non-zero, the trace containing this span uses 128-bit trace identifiers.
-
traceId
public long traceId()
Deprecated.lower 64-bits of theSpan.traceId()
-
id
public long id()
Deprecated.Same asSpan.id()
except packed into a long. Zero means root span.
-
name
public java.lang.String name()
Deprecated.Same asSpan.name()
-
parentId
public long parentId()
Deprecated.The parent'sid()
or zero if this the root span in a trace.
-
timestamp
public long timestamp()
Deprecated.Same asSpan.timestampAsLong()
-
duration
public long duration()
Deprecated.Same asSpan.durationAsLong()
-
annotations
public java.util.List<V1Annotation> annotations()
Deprecated.Same asSpan.annotations()
, except each may be associated withSpan.localEndpoint()
-
binaryAnnotations
public java.util.List<V1BinaryAnnotation> binaryAnnotations()
Deprecated.Span.tags()
are allocated to binary annotations with aV1BinaryAnnotation.stringValue()
.Span.remoteEndpoint()
to those without.
-
debug
public java.lang.Boolean debug()
Deprecated.Same asSpan.debug()
-
serviceNames
public java.util.Set<java.lang.String> serviceNames()
Deprecated.Returns the distinctservice names
that logged to this span.
-
newBuilder
public static V1Span.Builder newBuilder()
Deprecated.
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
-