Package io.sentry

Interface TransactionPerformanceCollector

All Known Implementing Classes:
DefaultTransactionPerformanceCollector, NoOpTransactionPerformanceCollector

public interface TransactionPerformanceCollector
  • Method Details

    • start

      void start(@NotNull @NotNull ITransaction transaction)
    • onSpanStarted

      void onSpanStarted(@NotNull @NotNull ISpan span)
      Called whenever a new span (including the top level transaction) is started.
      Parameters:
      span - the span that was started
    • onSpanFinished

      void onSpanFinished(@NotNull @NotNull ISpan span)
      Called whenever a span (including the top level transaction) is finished.
      Parameters:
      span - the span that was finished
    • stop

      @Nullable @Nullable List<PerformanceCollectionData> stop(@NotNull @NotNull ITransaction transaction)
    • close

      @Internal void close()
      Cancel the collector and stops it. Used on SDK close.