Package io.sentry

Class TransactionOptions

java.lang.Object
io.sentry.SpanOptions
io.sentry.TransactionOptions

@Internal public final class TransactionOptions extends SpanOptions
  • Constructor Details

    • TransactionOptions

      public TransactionOptions()
  • Method Details

    • getCustomSamplingContext

      @Nullable public @Nullable CustomSamplingContext getCustomSamplingContext()
    • setCustomSamplingContext

      public void setCustomSamplingContext(@Nullable @Nullable CustomSamplingContext customSamplingContext)
    • isBindToScope

      public boolean isBindToScope()
    • setBindToScope

      public void setBindToScope(boolean bindToScope)
    • getStartTimestamp

      @Nullable public @Nullable SentryDate getStartTimestamp()
    • setStartTimestamp

      public void setStartTimestamp(@Nullable @Nullable SentryDate startTimestamp)
    • 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

      @Nullable public @Nullable Long 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

      public void setIdleTimeout(@Nullable @Nullable Long idleTimeout)
    • getTransactionFinishedCallback

      @Nullable public @Nullable TransactionFinishedCallback getTransactionFinishedCallback()
    • setTransactionFinishedCallback

      public void setTransactionFinishedCallback(@Nullable @Nullable TransactionFinishedCallback transactionFinishedCallback)