Package io.sentry

Interface ITransaction

All Superinterfaces:
ISpan
All Known Implementing Classes:
NoOpTransaction, SentryTracer

public interface ITransaction extends ISpan
  • Method Details

    • setName

      void setName(@NotNull @NotNull String name)
      Sets transaction name.
      Parameters:
      name - - transaction name
    • setName

      @Internal void setName(@NotNull @NotNull String name, @NotNull @NotNull TransactionNameSource transactionNameSource)
    • getName

      @NotNull @NotNull String getName()
      Returns transaction name.
      Returns:
      transaction name
    • getTransactionNameSource

      @NotNull @NotNull TransactionNameSource getTransactionNameSource()
      Returns the source of the transaction name.
      Returns:
      transaction name source
    • getSpans

      @NotNull @TestOnly @NotNull List<Span> getSpans()
    • isSampled

      @Nullable @Nullable Boolean isSampled()
      Returns if transaction is sampled.
      Returns:
      is sampled
    • isProfileSampled

      @Nullable @Nullable Boolean isProfileSampled()
      Returns if the profile of a transaction is sampled.
      Returns:
      profile is sampled
    • getSamplingDecision

      @Nullable @Nullable TracesSamplingDecision getSamplingDecision()
    • getLatestActiveSpan

      @Nullable @Nullable Span getLatestActiveSpan()
      Returns the latest span that is not finished.
      Returns:
      span or null if not found.
    • getEventId

      @NotNull @NotNull SentryId getEventId()
      Returns transaction's event id.
      Returns:
      the event id
    • scheduleFinish

      void scheduleFinish()
      Schedules when transaction should be automatically finished.
    • setContext

      @Internal void setContext(@NotNull @NotNull String key, @NotNull @NotNull Object context)
    • getContexts

      @Internal @NotNull @NotNull Contexts getContexts()