Package io.sentry
Class TransactionOptions
java.lang.Object
io.sentry.SpanOptions
io.sentry.TransactionOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable CustomSamplingContext
@Nullable Long
The idle time, measured in ms, to wait until the transaction will be finished.@Nullable SentryDate
@Nullable TransactionFinishedCallback
boolean
boolean
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.void
setBindToScope
(boolean bindToScope) void
setCustomSamplingContext
(@Nullable CustomSamplingContext customSamplingContext) void
setIdleTimeout
(@Nullable Long idleTimeout) void
setStartTimestamp
(@Nullable SentryDate startTimestamp) void
setTransactionFinishedCallback
(@Nullable TransactionFinishedCallback transactionFinishedCallback) void
setWaitForChildren
(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
null
the transaction must be finished manually.The default is 3 seconds.
-
setIdleTimeout
-
getTransactionFinishedCallback
-
setTransactionFinishedCallback
public void setTransactionFinishedCallback(@Nullable @Nullable TransactionFinishedCallback transactionFinishedCallback)
-