public interface ITransaction extends ISpan
Modifier and Type | Method and 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.
|
finish, finish, getDescription, getOperation, getSpanContext, getStatus, getTag, getThrowable, isFinished, setDescription, setOperation, setStatus, setTag, setThrowable, startChild, startChild, startChild, toSentryTrace
void setName(@NotNull @NotNull java.lang.String name)
name
- - transaction name@NotNull @NotNull java.lang.String getName()
@NotNull @TestOnly @NotNull java.util.List<Span> getSpans()
@Nullable @Nullable java.lang.Boolean isSampled()
@Nullable @Nullable Span getLatestActiveSpan()
@NotNull @NotNull SentryId getEventId()
@Deprecated @ApiStatus.ScheduledForRemoval void setRequest(@Nullable @Nullable Request request)
Scope.setRequest(Request)
request
- the request@Nullable @Deprecated @ApiStatus.ScheduledForRemoval @Nullable Request getRequest()
Scope.getRequest()
null
if not set@NotNull @Deprecated @ApiStatus.ScheduledForRemoval @NotNull Contexts getContexts()
Scope.getContexts()