Class TelemetryManager

java.lang.Object
com._1c.g5.v8.dt.internal.telemetry.TelemetryManager
All Implemented Interfaces:
ITelemetryManager, IManagedService

public final class TelemetryManager extends Object implements ITelemetryManager
ITelemetryManager implementation that allows to access available telemetry information of EDT
  • Constructor Details

    • TelemetryManager

      @Inject public TelemetryManager(ITelemetryLogger logger)
      Constructs the instance of the telemetry manager
  • Method Details

    • activate

      public void activate()
      Specified by:
      activate in interface IManagedService
    • deactivate

      public void deactivate()
      Specified by:
      deactivate in interface IManagedService
    • dumpAvailableTelemetry

      public void dumpAvailableTelemetry(String dumpReason)
      Description copied from interface: ITelemetryManager
      Dumps available telemetry into the telemetry log
      Specified by:
      dumpAvailableTelemetry in interface ITelemetryManager
      Parameters:
      dumpReason - The reason for telemetry dump. May not be null
    • dumpAvailableTelemetry

      public void dumpAvailableTelemetry(String dumpReason, PrintStream destinationStream)
      Description copied from interface: ITelemetryManager
      Dumps available telemetry into the given stream
      Specified by:
      dumpAvailableTelemetry in interface ITelemetryManager
      Parameters:
      dumpReason - The reason for telemetry dump. May not be null
    • dumpAvailableTelemetry

      public void dumpAvailableTelemetry(String dumpReason, Throwable exception)
      Description copied from interface: ITelemetryManager
      Dumps available telemetry into the telemetry log on error
      Specified by:
      dumpAvailableTelemetry in interface ITelemetryManager
      Parameters:
      dumpReason - The reason for telemetry dump. May not be null
      exception - The caught exception. May not be null
    • dumpExternalData

      public void dumpExternalData(String dumpReason, Supplier<String> dumpSupplier)
      Description copied from interface: ITelemetryManager
      Adds external source information to the telemetry dump
      Specified by:
      dumpExternalData in interface ITelemetryManager
      Parameters:
      dumpReason - The reason for telemetry dump. May not be null
      dumpSupplier - The supplier of the information to dump into the telemetry log. Cannot be null
    • registerProvider

      public void registerProvider(ITelemetryProvider provider)
      Description copied from interface: ITelemetryManager
      Registers the telemetry provider
      Specified by:
      registerProvider in interface ITelemetryManager
      Parameters:
      provider - The provider. Cannot be null