public class CIVisibility extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
CIVisibility.SessionFactory |
Constructor and Description |
---|
CIVisibility() |
Modifier and Type | Method and Description |
---|---|
static void |
registerSessionFactory(CIVisibility.SessionFactory sessionFactory)
This a hook for injecting SessionFactory implementation.
|
static DDTestSession |
startSession(String projectName,
Path projectRoot,
String component,
Long startTime) |
static DDTestSession |
startSession(String projectName,
String component,
Long startTime)
Marks the start of a new test session.
|
public static void registerSessionFactory(CIVisibility.SessionFactory sessionFactory)
sessionFactory
- Session factory instancepublic static DDTestSession startSession(String projectName, String component, @Nullable Long startTime)
projectName
- The name of the tested projectcomponent
- The name of the test component (typically corresponds to the name of the
testing framework used). This will be added as prefix to reported span namesstartTime
- Optional start time in microseconds. If null
is supplied, current time
will be assumed