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
      • setRequest

        @Deprecated
        @ScheduledForRemoval
        void setRequest​(@Nullable
                        @Nullable Request request)
        Deprecated.
        Attaches request information to the transaction.
        Parameters:
        request - the request
      • getRequest

        @Nullable
        @Deprecated
        @ScheduledForRemoval
        @Nullable Request getRequest()
        Deprecated.
        Returns the request information from the transaction
        Returns:
        the request or null if not set
      • getContexts

        @NotNull
        @Deprecated
        @ScheduledForRemoval
        @NotNull Contexts getContexts()
        Deprecated.
        Returns contexts associated with the transaction.
        Returns:
        the contexts