public final class DependencyLinker extends Object
This implementation traverses the tree, and only creates links between server spans. One exception is at the bottom of the trace tree. client spans
that record their Span.remoteEndpoint() are included, as this accounts for uninstrumented
services. Spans with Span.kind() unset, but Span.remoteEndpoint() set are treated
the same as client spans.
| Constructor and Description |
|---|
DependencyLinker() |
| Modifier and Type | Method and Description |
|---|---|
List<DependencyLink> |
link() |
static List<DependencyLink> |
merge(Iterable<DependencyLink> in)
links are merged by mapping to parent/child and summing corresponding links
|
DependencyLinker |
putTrace(Iterator<Span> spans) |
public DependencyLinker putTrace(Iterator<Span> spans)
spans - spans where all spans have the same trace idpublic List<DependencyLink> link()
public static List<DependencyLink> merge(Iterable<DependencyLink> in)
Copyright © 2015–2018 OpenZipkin. All rights reserved.