Interface Telemetry

All Known Implementing Classes:
DefaultTelemetry, NoOpTelemetry

@ScannerSide @SonarLintSide @ExtensionPoint public interface Telemetry
Provides access to the APIs for reporting telemetry.
  • Method Details

    • aggregateAsSortedSet

      void aggregateAsSortedSet(TelemetryKey key, String value)
      Aggregates all the given values as a sorted set for the given key. The final map will contain the key and a comma-separated list of sorted values.
    • aggregateAsSortedSet

      void aggregateAsSortedSet(TelemetryKey key)
      Same as aggregateAsSortedSet(TelemetryKey, String), but no value is added. If this is the only call for the key, then the final map will be empty for the key.
    • aggregateAsCounter

      void aggregateAsCounter(TelemetryKey key, long value)
      Aggregates all the given values as a sum for the given key.
    • aggregateAsFlag

      void aggregateAsFlag(TelemetryKey key, boolean value)
    • toMap

      Map<String,String> toMap()
      Returns:
      convert all the different kind of key / value pairs type into a string / string map.