All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sentry.ITransactionProfiler Maven / Gradle / Ivy

package io.sentry;

import java.util.List;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/** Used for performing operations when a transaction is started or ended. */
@ApiStatus.Internal
public interface ITransactionProfiler {
  boolean isRunning();

  void start();

  void bindTransaction(@NotNull ITransaction transaction);

  @Nullable
  ProfilingTraceData onTransactionFinish(
      @NotNull ITransaction transaction,
      @Nullable List performanceCollectionData,
      @NotNull SentryOptions options);

  /** Cancel the profiler and stops it. Used on SDK close. */
  void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy