Package io.sentry
Class NoOpTransactionPerformanceCollector
java.lang.Object
io.sentry.NoOpTransactionPerformanceCollector
- All Implemented Interfaces:
TransactionPerformanceCollector
public final class NoOpTransactionPerformanceCollector
extends Object
implements TransactionPerformanceCollector
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Cancel the collector and stops it.void
onSpanFinished
(@NotNull ISpan span) Called whenever a span (including the top level transaction) is finished.void
onSpanStarted
(@NotNull ISpan span) Called whenever a new span (including the top level transaction) is started.void
start
(@NotNull ITransaction transaction) @Nullable List<PerformanceCollectionData>
stop
(@NotNull ITransaction transaction)
-
Method Details
-
getInstance
-
start
- Specified by:
start
in interfaceTransactionPerformanceCollector
-
onSpanStarted
Description copied from interface:TransactionPerformanceCollector
Called whenever a new span (including the top level transaction) is started.- Specified by:
onSpanStarted
in interfaceTransactionPerformanceCollector
- Parameters:
span
- the span that was started
-
onSpanFinished
Description copied from interface:TransactionPerformanceCollector
Called whenever a span (including the top level transaction) is finished.- Specified by:
onSpanFinished
in interfaceTransactionPerformanceCollector
- Parameters:
span
- the span that was finished
-
stop
@Nullable public @Nullable List<PerformanceCollectionData> stop(@NotNull @NotNull ITransaction transaction) - Specified by:
stop
in interfaceTransactionPerformanceCollector
-
close
public void close()Description copied from interface:TransactionPerformanceCollector
Cancel the collector and stops it. Used on SDK close.- Specified by:
close
in interfaceTransactionPerformanceCollector
-