Package io.sentry

Interface ITransaction

    • Method Detail

      • setName

        void setName​(@NotNull
                     @NotNull java.lang.String name)
        Sets transaction name.
        Parameters:
        name - - transaction name
      • getName

        @NotNull
        @NotNull java.lang.String getName()
        Returns transaction name.
        Returns:
        transaction name
      • getSpans

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

        @Nullable
        @Nullable java.lang.Boolean isSampled()
        Returns if transaction is sampled.
        Returns:
        is sampled
      • 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​(@NotNull
                            @NotNull java.lang.Long idleTimeout)
        Schedules when transaction should be automatically finished.
        Parameters:
        idleTimeout - - the time to wait before finishing the transaction