Package io.sentry
Class TransactionOptions
java.lang.Object
io.sentry.SpanOptions
io.sentry.TransactionOptions
Sentry Transaction options
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable CustomSamplingContext
Gets the customSamplingContext@Nullable Long
Gets the idleTimeout@Nullable SentryDate
Gets the startTimestamp@Nullable TransactionFinishedCallback
Gets the transactionFinishedCallback callbackboolean
Checks if bindToScope is enabledboolean
Checks if waitForChildren is enabledvoid
setBindToScope
(boolean bindToScope) Sets bindToScope to enabled or disabledvoid
setCustomSamplingContext
(@Nullable CustomSamplingContext customSamplingContext) Sets the customSamplingContextvoid
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
-
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
-
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
-