Package datadog.trace.api.civisibility
Class CIVisibility
java.lang.Object
datadog.trace.api.civisibility.CIVisibility
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterSessionFactory(CIVisibility.SessionFactory sessionFactory) This a hook for injecting SessionFactory implementation.static DDTestSessionstartSession(String projectName, String component, Long startTime) Marks the start of a new test session.static DDTestSessionstartSession(String projectName, Path projectRoot, String component, Long startTime)
-
Constructor Details
-
CIVisibility
public CIVisibility()
-
-
Method Details
-
registerSessionFactory
This a hook for injecting SessionFactory implementation. It should only be used internally by the tracer logic- Parameters:
sessionFactory- Session factory instance
-
startSession
public static DDTestSession startSession(String projectName, String component, @Nullable Long startTime) Marks the start of a new test session.- Parameters:
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. Ifnullis supplied, current time will be assumed- Returns:
- Handle to the test session instance
-
startSession
-