Package io.sentry
Class DefaultTransactionPerformanceCollector
java.lang.Object
io.sentry.DefaultTransactionPerformanceCollector
- All Implemented Interfaces:
TransactionPerformanceCollector
@Internal
public final class DefaultTransactionPerformanceCollector
extends Object
implements TransactionPerformanceCollector
-
Constructor Summary
-
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)
-
Constructor Details
-
DefaultTransactionPerformanceCollector
-
-
Method Details
-
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
-