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 Modifier and Type Method Description @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.@NotNull java.util.List<Span>
getSpans()
@Nullable java.lang.Boolean
isSampled()
Returns if transaction is sampled.void
scheduleFinish(@NotNull java.lang.Long idleTimeout)
Schedules when transaction should be automatically finished.void
setName(@NotNull java.lang.String name)
Sets transaction name.-
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
-
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
-
-