public interface SpanService
| Modifier and Type | Method and Description |
|---|---|
void |
clear(String tenantId)
This method clears the span data for the supplied tenant.
|
List<Span> |
getChildren(String tenantId,
String id)
This method returns all children of a given span.
|
Span |
getSpan(String tenantId,
String id)
This method returns a span of a given id.
|
Trace |
getTrace(String tenantId,
String id)
This method returns the end to end trace associated with the supplied id.
|
Trace |
getTraceFragment(String tenantId,
String id)
This method returns the trace fragment associated with the supplied id.
|
void |
storeSpan(String tenantId,
List<Span> spans)
This method stores the supplied list of spans.
|
void |
storeSpan(String tenantId,
List<Span> spans,
Function<Span,String> spanIdSupplier)
This method stores the supplied list of spans.
|
Span getSpan(String tenantId, String id)
tenantId - The tenantid - The span idIllegalStateException - when failed to deserialize json from a database.List<Span> getChildren(String tenantId, String id)
tenantId - The Tenantid - The span idIllegalStateException - when failed to deserialize json from a database.void storeSpan(String tenantId, List<Span> spans) throws StoreException
tenantId - The tenant idspans - The spansStoreException - Is thrown when spans could not be serialized to json or stored into database.void storeSpan(String tenantId, List<Span> spans, Function<Span,String> spanIdSupplier) throws StoreException
tenantId - The tenant idspans - The spansspanIdSupplier - Function which is used to generate span id for indexing. Therefore this new id should
be used for following spans querying.StoreException - Is thrown when spans could not be serialized to json or stored into database.void clear(String tenantId)
tenantId - The tenant idTrace getTraceFragment(String tenantId, String id)
tenantId - the tenantid - the span idCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.