Package zipkin2.storage
Class ITDependencies<T extends StorageComponent>
java.lang.Object
zipkin2.storage.ITStorage<T>
zipkin2.storage.ITDependencies<T>
@TestInstance(PER_CLASS) public abstract class ITDependencies<T extends StorageComponent> extends ITStorage<T>
Base test for
SpanStore
implementations that support dependency aggregation. Subtypes
should create a connection to a real backend, even if that backend is in-process.
This is a replacement for zipkin.storage.DependenciesTest
. There is some redundancy
as zipkin2.internal.DependencyLinkerTest
also defines many of these tests. The redundancy
helps ensure integrated storage doesn't fail due to mismapping of data, for example.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ITDependencies()
-
Method Summary
Modifier and Type Method Description protected Map<Long,List<DependencyLink>>
aggregateLinks(List<Span> spans)
Returns links aggregated by midnightprotected void
configureStorageForTest(StorageComponent.Builder storage)
Configures aStorageComponent.Builder
with parameters for the test being executed.protected void
processDependencies(List<Span> spans)
Override if dependency processing is a separate job: it should complete before returning from this method.Methods inherited from class zipkin2.storage.ITStorage
accept, accept, blockWhileInFlight, clear, initializeStoragePerTest, names, newStorageBuilder, store, traces
-
Constructor Details
-
ITDependencies
public ITDependencies()
-
-
Method Details
-
configureStorageForTest
Description copied from class:ITStorage
Configures aStorageComponent.Builder
with parameters for the test being executed.- Specified by:
configureStorageForTest
in classITStorage<T extends StorageComponent>
-
processDependencies
Override if dependency processing is a separate job: it should complete before returning from this method.- Throws:
Exception
-
aggregateLinks
Returns links aggregated by midnight
-