Package | Description |
---|---|
io.opentracing | |
io.opentracing.tag |
Modifier and Type | Method and Description |
---|---|
Span |
Tracer.activeSpan() |
Span |
ScopeManager.activeSpan()
Return the currently active
Span . |
Span |
Span.log(long timestampMicroseconds,
Map<String,?> fields)
Like log(Map<String, Object>), but with an explicit timestamp.
|
Span |
Span.log(long timestampMicroseconds,
String event)
Record an event at a specific timestamp.
|
Span |
Span.log(Map<String,?> fields)
Log key:value pairs to the Span with the current walltime timestamp.
|
Span |
Span.log(String event)
Record an event at the current walltime timestamp.
|
Span |
Span.setBaggageItem(String key,
String value)
Sets a baggage item in the Span (and its SpanContext) as a key/value pair.
|
Span |
Span.setOperationName(String operationName)
Sets the string name for the logical operation this span represents.
|
Span |
Span.setTag(String key,
boolean value)
Same as
setTag(String, String) , but for boolean values. |
Span |
Span.setTag(String key,
Number value)
Same as
setTag(String, String) , but for numeric values. |
Span |
Span.setTag(String key,
String value)
Set a key:value tag on the Span.
|
<T> Span |
Span.setTag(Tag<T> tag,
T value)
Same as
setTag(String, String) , but with using Tag |
Span |
Scope.span()
Deprecated.
use
Span directly or access it through ScopeManager.activeSpan()
Return the corresponding active Span for this instance. |
Span |
Tracer.SpanBuilder.start()
Returns a newly-started
Span . |
Span |
Tracer.SpanBuilder.startManual()
Deprecated.
use
Tracer.SpanBuilder.start() instead. |
Modifier and Type | Method and Description |
---|---|
Scope |
ScopeManager.activate(Span span)
Set the specified
Span as the active instance for the current
context (usually a thread). |
Scope |
ScopeManager.activate(Span span,
boolean finishSpanOnClose)
Deprecated.
use
ScopeManager.activate(Span) instead.
Set the specified Span as the active instance for the current
context (usually a thread).
Finishing the
|
Scope |
Tracer.activateSpan(Span span)
Make a
Span instance active for the current context (usually a thread). |
Tracer.SpanBuilder |
Tracer.SpanBuilder.asChildOf(Span parent)
A shorthand for addReference(References.CHILD_OF, parent.context()).
|
Modifier and Type | Method and Description |
---|---|
void |
BooleanTag.set(Span span,
Boolean tagValue) |
void |
IntTag.set(Span span,
Integer tagValue) |
void |
StringTag.set(Span span,
String tagValue) |
void |
IntOrStringTag.set(Span span,
String tagValue) |
void |
StringTag.set(Span span,
StringTag tag)
Deprecated.
as using the tag *key* as tag value is not usually required.
|
void |
Tag.set(Span span,
T value) |
abstract void |
AbstractTag.set(Span span,
T tagValue) |
Copyright © 2016–2018 OpenTracing. All rights reserved.