Package io.sentry
Class TransactionOptions
java.lang.Object
io.sentry.SpanOptions
io.sentry.TransactionOptions
Sentry Transaction options
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable CustomSamplingContextGets the customSamplingContext@Nullable LongGets the idleTimeout@Nullable SentryDateGets the startTimestamp@Nullable TransactionFinishedCallbackGets the transactionFinishedCallback callbackbooleanChecks if bindToScope is enabledbooleanChecks if waitForChildren is enabledvoidsetBindToScope(boolean bindToScope) Sets bindToScope to enabled or disabledvoidsetCustomSamplingContext(@Nullable CustomSamplingContext customSamplingContext) Sets the customSamplingContextvoidsetIdleTimeout(@Nullable Long idleTimeout) Sets the idleTimeoutvoidsetStartTimestamp(@Nullable SentryDate startTimestamp) Sets the startTimestampvoidsetTransactionFinishedCallback(@Nullable TransactionFinishedCallback transactionFinishedCallback) Sets the transactionFinishedCallback callbackvoidsetWaitForChildren(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
-