Package io.sentry
Interface ITransaction
-
- All Superinterfaces:
ISpan
- All Known Implementing Classes:
NoOpTransaction
,SentryTracer
public interface ITransaction extends ISpan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NotNull Contexts
getContexts()
Deprecated.@NotNull SentryId
getEventId()
Returns transaction's event id.@Nullable Span
getLatestActiveSpan()
Returns the latest span that is not finished.@NotNull java.lang.String
getName()
Returns transaction name.@Nullable Request
getRequest()
Deprecated.@NotNull java.util.List<Span>
getSpans()
@Nullable java.lang.Boolean
isSampled()
Returns if transaction is sampled.void
setName(@NotNull java.lang.String name)
Sets transaction name.void
setRequest(@Nullable Request request)
Deprecated.-
Methods inherited from interface io.sentry.ISpan
finish, finish, getData, getDescription, getOperation, getSpanContext, getStatus, getTag, getThrowable, isFinished, setData, setDescription, setOperation, setStatus, setTag, setThrowable, startChild, startChild, startChild, toSentryTrace, toTraceStateHeader, traceState
-
-
-
-
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
-
-