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

io.sentry.graphql.NoOpSubscriptionHandler Maven / Gradle / Ivy

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

import graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters;
import io.sentry.IHub;
import org.jetbrains.annotations.NotNull;

public final class NoOpSubscriptionHandler implements SentrySubscriptionHandler {

  private static final @NotNull NoOpSubscriptionHandler instance = new NoOpSubscriptionHandler();

  private NoOpSubscriptionHandler() {}

  public static @NotNull NoOpSubscriptionHandler getInstance() {
    return instance;
  }

  @Override
  public @NotNull Object onSubscriptionResult(
      @NotNull Object result,
      @NotNull IHub hub,
      @NotNull ExceptionReporter exceptionReporter,
      @NotNull InstrumentationFieldFetchParameters parameters) {
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy