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

io.sentry.NoOpTransactionProfiler Maven / Gradle / Ivy

There is a newer version: 8.0.0-rc.4
Show newest version
package io.sentry;

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

public final class NoOpTransactionProfiler implements ITransactionProfiler {

  private static final NoOpTransactionProfiler instance = new NoOpTransactionProfiler();

  private NoOpTransactionProfiler() {}

  public static NoOpTransactionProfiler getInstance() {
    return instance;
  }

  @Override
  public void start() {}

  @Override
  public boolean isRunning() {
    return false;
  }

  @Override
  public void bindTransaction(@NotNull ITransaction transaction) {}

  @Override
  public @Nullable ProfilingTraceData onTransactionFinish(
      @NotNull ITransaction transaction,
      @Nullable List performanceCollectionData,
      @NotNull SentryOptions options) {
    return null;
  }

  @Override
  public void close() {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy