Class CIVisibility

java.lang.Object
datadog.trace.api.civisibility.CIVisibility

public class CIVisibility extends Object
  • Constructor Details

    • CIVisibility

      public CIVisibility()
  • Method Details

    • registerSessionFactory

      public static void registerSessionFactory(CIVisibility.SessionFactory sessionFactory)
      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 project
      component - 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 names
      startTime - Optional start time in microseconds. If null is supplied, current time will be assumed
      Returns:
      Handle to the test session instance
    • startSession

      public static DDTestSession startSession(String projectName, Path projectRoot, String component, @Nullable Long startTime)