Package io.sentry
Interface TransactionPerformanceCollector
- All Known Implementing Classes:
DefaultTransactionPerformanceCollector
,NoOpTransactionPerformanceCollector
public interface 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
-
start
-
onSpanStarted
Called whenever a new span (including the top level transaction) is started.- Parameters:
span
- the span that was started
-
onSpanFinished
Called whenever a span (including the top level transaction) is finished.- Parameters:
span
- the span that was finished
-
stop
@Nullable @Nullable List<PerformanceCollectionData> stop(@NotNull @NotNull ITransaction transaction) -
close
@Internal void close()Cancel the collector and stops it. Used on SDK close.
-