io.sentry.clientreport.NoOpClientReportRecorder Maven / Gradle / Ivy
package io.sentry.clientreport;
import io.sentry.DataCategory;
import io.sentry.SentryEnvelope;
import io.sentry.SentryEnvelopeItem;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@ApiStatus.Internal
public final class NoOpClientReportRecorder implements IClientReportRecorder {
@Override
public void recordLostEnvelope(@NotNull DiscardReason reason, @Nullable SentryEnvelope envelope) {
// do nothing
}
@Override
public void recordLostEnvelopeItem(
@NotNull DiscardReason reason, @Nullable SentryEnvelopeItem envelopeItem) {
// do nothing
}
@Override
public void recordLostEvent(@NotNull DiscardReason reason, @NotNull DataCategory category) {
// do nothing
}
@Override
public void recordLostEvent(
@NotNull DiscardReason reason, @NotNull DataCategory category, long count) {
// do nothing
}
@Override
public @NotNull SentryEnvelope attachReportToEnvelope(@NotNull SentryEnvelope envelope) {
return envelope;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy