Package io.sentry
Class TransactionOptions
java.lang.Object
io.sentry.SpanOptions
io.sentry.TransactionOptions
Sentry Transaction options
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable CustomSamplingContext
Gets the customSamplingContext@Nullable Long
Gets the deadlineTimeout@Nullable Long
Gets the idleTimeout@Nullable SentryDate
Gets the startTimestamp@Nullable TransactionFinishedCallback
Gets the transactionFinishedCallback callbackboolean
boolean
Checks if bindToScope is enabledboolean
Checks if waitForChildren is enabledvoid
setAppStartTransaction
(boolean appStartTransaction) void
setBindToScope
(boolean bindToScope) Sets bindToScope to enabled or disabledvoid
setCustomSamplingContext
(@Nullable CustomSamplingContext customSamplingContext) Sets the customSamplingContextvoid
setDeadlineTimeout
(@Nullable Long deadlineTimeoutMs) Sets the deadlineTimeout.void
setIdleTimeout
(@Nullable Long idleTimeout) Sets the idleTimeoutvoid
setStartTimestamp
(@Nullable SentryDate startTimestamp) Sets the startTimestampvoid
setTransactionFinishedCallback
(@Nullable TransactionFinishedCallback transactionFinishedCallback) Sets the transactionFinishedCallback callbackvoid
setWaitForChildren
(boolean waitForChildren) Sets waitForChildren to enabled or disabledMethods inherited from class io.sentry.SpanOptions
isIdle, isTrimEnd, isTrimStart, setIdle, setTrimEnd, setTrimStart
-
Field Details
-
DEFAULT_DEADLINE_TIMEOUT_AUTO_TRANSACTION
@Internal public static final long DEFAULT_DEADLINE_TIMEOUT_AUTO_TRANSACTION- See Also:
-
-
Constructor Details
-
TransactionOptions
public TransactionOptions()
-
-
Method Details
-
getCustomSamplingContext
Gets the customSamplingContext- Returns:
- customSamplingContext - the customSamplingContext
-
setCustomSamplingContext
public void setCustomSamplingContext(@Nullable @Nullable CustomSamplingContext customSamplingContext) Sets the customSamplingContext- Parameters:
customSamplingContext
- - the customSamplingContext
-
isBindToScope
public boolean isBindToScope()Checks if bindToScope is enabled- Returns:
- true if enabled or false otherwise
-
setBindToScope
public void setBindToScope(boolean bindToScope) Sets bindToScope to enabled or disabled- Parameters:
bindToScope
- true if enabled or false otherwise
-
getStartTimestamp
Gets the startTimestamp- Returns:
- startTimestamp - the startTimestamp
-
setStartTimestamp
Sets the startTimestamp- Parameters:
startTimestamp
- - the startTimestamp
-
isWaitForChildren
public boolean isWaitForChildren()Checks if waitForChildren is enabled- Returns:
- true if enabled or false otherwise
-
setWaitForChildren
public void setWaitForChildren(boolean waitForChildren) Sets waitForChildren to enabled or disabled- Parameters:
waitForChildren
- true if enabled or false otherwise
-
getIdleTimeout
Gets the idleTimeout- Returns:
- idleTimeout - the idleTimeout
-
setDeadlineTimeout
Sets the deadlineTimeout. If set, an transaction and it's child spans will be force-finished with statusSpanStatus.DEADLINE_EXCEEDED
in case the transaction isn't finished in time.- Parameters:
deadlineTimeoutMs
- - the deadlineTimeout, in ms - or null if no deadline should be set
-
getDeadlineTimeout
Gets the deadlineTimeout- Returns:
- deadlineTimeout - the deadlineTimeout, in ms - or null if no deadline is set
-
setIdleTimeout
Sets the idleTimeout- Parameters:
idleTimeout
- - the idleTimeout
-
getTransactionFinishedCallback
Gets the transactionFinishedCallback callback- Returns:
- transactionFinishedCallback - the transactionFinishedCallback callback
-
setTransactionFinishedCallback
public void setTransactionFinishedCallback(@Nullable @Nullable TransactionFinishedCallback transactionFinishedCallback) Sets the transactionFinishedCallback callback- Parameters:
transactionFinishedCallback
- - the transactionFinishedCallback callback
-
setAppStartTransaction
@Internal public void setAppStartTransaction(boolean appStartTransaction) -
isAppStartTransaction
@Internal public boolean isAppStartTransaction()
-