public Span.Builder clear()
public Span.Builder clone()
public Span.Builder merge(Span source)
@Nullable public Span.Kind kind()
@Nullable public Endpoint localEndpoint()
public Span.Builder traceId(String traceId)
IllegalArgumentException
- if not lower-hex formatSpan.id()
public Span.Builder traceId(long high, long low)
high
- Upper 64bits of the trace ID. Zero means the trace ID is 64-bit.low
- Lower 64bits of the trace ID.IllegalArgumentException
- if both values are zeropublic Span.Builder parentId(long parentId)
Span.parentId()
if
the input is 0.Span.parentId()
public Span.Builder parentId(@Nullable String parentId)
IllegalArgumentException
- if not lower-hex formatSpan.parentId()
public Span.Builder id(long id)
IllegalArgumentException
- if the input is zeroSpan.id()
public Span.Builder id(String id)
IllegalArgumentException
- if not lower-hex formatSpan.id()
public Span.Builder kind(@Nullable Span.Kind kind)
Span.kind
public Span.Builder name(@Nullable String name)
Span.name
public Span.Builder timestamp(long timestamp)
Span.timestampAsLong()
public Span.Builder timestamp(@Nullable Long timestamp)
Span.timestamp()
public Span.Builder duration(long duration)
Span.durationAsLong()
public Span.Builder duration(@Nullable Long duration)
Span.duration()
public Span.Builder localEndpoint(@Nullable Endpoint localEndpoint)
Span.localEndpoint
public Span.Builder remoteEndpoint(@Nullable Endpoint remoteEndpoint)
Span.remoteEndpoint
public Span.Builder addAnnotation(long timestamp, String value)
Span.annotations
public Span.Builder clearAnnotations()
Span.annotations
public Span.Builder putTag(String key, String value)
Span.tags
public Span.Builder clearTags()
Span.tags
public Span.Builder debug(boolean debug)
Span.debug()
public Span.Builder debug(@Nullable Boolean debug)
Span.debug()
public Span.Builder shared(boolean shared)
Span.shared()
public Span.Builder shared(@Nullable Boolean shared)
Span.shared()
public Span build()
Copyright © 2015–2018 OpenZipkin. All rights reserved.