public static interface Tracer.SpanBuilder
| Modifier and Type | Method and Description |
|---|---|
Tracer.SpanBuilder |
addReference(String referenceType,
SpanContext referencedContext)
Add a reference from the Span being built to a distinct (usually parent) Span.
|
Tracer.SpanBuilder |
asChildOf(SpanContext parent)
A shorthand for withReference(Reference.childOf(parent)).
|
Span |
start()
Returns the started Span.
|
Tracer.SpanBuilder |
withStartTimestamp(long microseconds)
Specify a timestamp of when the Span was started, represented in microseconds since epoch.
|
Tracer.SpanBuilder |
withTag(String key,
boolean value)
Same as
Span.setTag(String, String), but for the span being built. |
Tracer.SpanBuilder |
withTag(String key,
Number value)
Same as
Span.setTag(String, String), but for the span being built. |
Tracer.SpanBuilder |
withTag(String key,
String value)
Same as
Span.setTag(String, String), but for the span being built. |
Tracer.SpanBuilder asChildOf(SpanContext parent)
Tracer.SpanBuilder addReference(String referenceType, SpanContext referencedContext)
referenceType - the reference type, typically one of the constants defined in ReferencesreferencedContext - the SpanContext being referenced; e.g., for a References.CHILD_OF referenceType, the referencedContext is the parentReferencesTracer.SpanBuilder withTag(String key, String value)
Span.setTag(String, String), but for the span being built.Tracer.SpanBuilder withTag(String key, boolean value)
Span.setTag(String, String), but for the span being built.Tracer.SpanBuilder withTag(String key, Number value)
Span.setTag(String, String), but for the span being built.Tracer.SpanBuilder withStartTimestamp(long microseconds)
Span start()
Copyright © 2016 OpenTracing. All rights reserved.