| Package | Description |
|---|---|
| com.github.kristofa.brave | |
| com.github.kristofa.brave.internal | |
| com.twitter.zipkin.gen |
| Modifier and Type | Method and Description |
|---|---|
Span |
ClientSpanState.getCurrentClientSpan()
Gets the Span for the client request that was started as part of current request.
|
Span |
ThreadLocalServerClientAndLocalSpanState.getCurrentClientSpan()
Gets the Span for the client request that was started as part of current request.
|
Span |
ClientSpanThreadBinder.getCurrentClientSpan()
This should be called in the thread in which the client request made after starting new client span.
|
Span |
LocalSpanState.getCurrentLocalSpan()
Gets the Span for the local request that was started as part of current request.
|
Span |
ThreadLocalServerClientAndLocalSpanState.getCurrentLocalSpan() |
abstract Span |
ServerSpan.getSpan()
Gets the Trace/Span context.
|
Span |
SpanAndEndpoint.span()
Gets the span to which to add annotations.
|
Span |
SpanAndEndpoint.ServerSpanAndEndpoint.span()
Gets the span to which to add annotations.
|
Span |
SpanAndEndpoint.ClientSpanAndEndpoint.span()
Gets the span to which to add annotations.
|
Span |
SpanAndEndpoint.LocalSpanAndEndpoint.span() |
Span |
SpanId.toSpan()
Preferred way to create spans, as it properly deals with the parent id
|
| Modifier and Type | Method and Description |
|---|---|
void |
EmptySpanCollector.collect(Span span)
Collect span.
|
void |
LoggingSpanCollector.collect(Span span)
Collect span.
|
void |
FlushingSpanCollector.collect(Span span)
Queues the span for collection, or drops it if the queue is full.
|
void |
SpanCollector.collect(Span span)
Collect span.
|
void |
ClientSpanState.setCurrentClientSpan(Span span)
Sets current client span.
|
void |
ThreadLocalServerClientAndLocalSpanState.setCurrentClientSpan(Span span)
Sets current client span.
|
void |
LocalSpanState.setCurrentLocalSpan(Span span)
Sets current local span.
|
void |
ThreadLocalServerClientAndLocalSpanState.setCurrentLocalSpan(Span span) |
void |
ClientSpanThreadBinder.setCurrentSpan(Span span)
Binds given span to current thread.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractSpanCollector.reportSpans(List<Span> drained) |
protected abstract void |
FlushingSpanCollector.reportSpans(List<Span> drained)
Reports a list of spans over the current transport.
|
| Modifier and Type | Method and Description |
|---|---|
Span |
DefaultSpanCodec.readSpan(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
DefaultSpanCodec.writeSpan(Span span) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
DefaultSpanCodec.writeSpans(List<Span> spans) |
| Modifier and Type | Method and Description |
|---|---|
Span |
Span.addToAnnotations(Annotation elem) |
Span |
Span.addToBinary_annotations(BinaryAnnotation elem) |
Span |
SpanCodec.readSpan(byte[] bytes)
throws IllegalArgumentException if the span couldn't be decoded
|
Span |
Span.setAnnotations(List<Annotation> annotations) |
Span |
Span.setBinaryAnnotations(List<BinaryAnnotation> binary_annotations) |
Span |
Span.setDebug(Boolean debug) |
Span |
Span.setDuration(Long duration)
Measurement of duration in microseconds, used to support queries.
|
Span |
Span.setId(long id) |
Span |
Span.setName(String name)
Span name in lowercase, rpc method for example
Conventionally, when the span name isn't known, name = "unknown".
|
Span |
Span.setParent_id(Long parent_id) |
Span |
Span.setTimestamp(Long timestamp)
Microseconds from epoch of the creation of this span.
|
Span |
Span.setTrace_id(long trace_id) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
SpanCodec.writeSpan(Span span) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
SpanCodec.writeSpans(List<Span> spans) |
Copyright © 2016. All rights reserved.