Package io.sentry
Class TransactionOptions
java.lang.Object
io.sentry.SpanOptions
io.sentry.TransactionOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable CustomSamplingContext@Nullable LongThe idle time, measured in ms, to wait until the transaction will be finished.@Nullable SentryDate@Nullable TransactionFinishedCallbackbooleanbooleanWhen `waitForChildren` is set to `true`, tracer will finish only when both conditions are met (the order of meeting condition does not matter): - tracer itself is finished - all child spans are finished.voidsetBindToScope(boolean bindToScope) voidsetCustomSamplingContext(@Nullable CustomSamplingContext customSamplingContext) voidsetIdleTimeout(@Nullable Long idleTimeout) voidsetStartTimestamp(@Nullable SentryDate startTimestamp) voidsetTransactionFinishedCallback(@Nullable TransactionFinishedCallback transactionFinishedCallback) voidsetWaitForChildren(boolean waitForChildren) Methods inherited from class io.sentry.SpanOptions
isIdle, isTrimEnd, isTrimStart, setIdle, setTrimEnd, setTrimStart
-
Constructor Details
-
TransactionOptions
public TransactionOptions()
-
-
Method Details
-
getCustomSamplingContext
-
setCustomSamplingContext
public void setCustomSamplingContext(@Nullable @Nullable CustomSamplingContext customSamplingContext) -
isBindToScope
public boolean isBindToScope() -
setBindToScope
public void setBindToScope(boolean bindToScope) -
getStartTimestamp
-
setStartTimestamp
-
isWaitForChildren
public boolean isWaitForChildren()When `waitForChildren` is set to `true`, tracer will finish only when both conditions are met (the order of meeting condition does not matter): - tracer itself is finished - all child spans are finished. -
setWaitForChildren
public void setWaitForChildren(boolean waitForChildren) -
getIdleTimeout
The idle time, measured in ms, to wait until the transaction will be finished. The span will use the end timestamp of the last finished span as the endtime for the transaction.When set to
nullthe transaction must be finished manually.The default is 3 seconds.
-
setIdleTimeout
-
getTransactionFinishedCallback
-
setTransactionFinishedCallback
public void setTransactionFinishedCallback(@Nullable @Nullable TransactionFinishedCallback transactionFinishedCallback)
-