Package io.sentry
Interface ITransaction
- All Superinterfaces:
ISpan
- All Known Implementing Classes:
NoOpTransaction,SentryTracer
-
Method Summary
Modifier and TypeMethodDescription@NotNull Contexts@NotNull SentryIdReturns transaction's event id.@Nullable SpanReturns the latest span that is not finished.@NotNull StringgetName()Returns transaction name.@Nullable TracesSamplingDecisiongetSpans()@NotNull TransactionNameSourceReturns the source of the transaction name.@Nullable BooleanReturns if the profile of a transaction is sampled.@Nullable BooleanReturns if transaction is sampled.voidSchedules when transaction should be automatically finished.voidsetContext(@NotNull String key, @NotNull Object context) voidSets transaction name.voidsetName(@NotNull String name, @NotNull TransactionNameSource transactionNameSource) Methods inherited from interface io.sentry.ISpan
finish, finish, finish, getData, getDescription, getOperation, getSpanContext, getStatus, getTag, getThrowable, isFinished, isNoOp, setData, setDescription, setMeasurement, setMeasurement, setOperation, setStatus, setTag, setThrowable, startChild, startChild, startChild, toBaggageHeader, toSentryTrace, traceContext
-
Method Details
-
setName
Sets transaction name.- Parameters:
name- - transaction name
-
setName
@Internal void setName(@NotNull @NotNull String name, @NotNull @NotNull TransactionNameSource transactionNameSource) -
getName
Returns transaction name.- Returns:
- transaction name
-
getTransactionNameSource
Returns the source of the transaction name.- Returns:
- transaction name source
-
getSpans
-
isSampled
Returns if transaction is sampled.- Returns:
- is sampled
-
isProfileSampled
Returns if the profile of a transaction is sampled.- Returns:
- profile is sampled
-
getSamplingDecision
-
getLatestActiveSpan
Returns the latest span that is not finished.- Returns:
- span or null if not found.
-
getEventId
Returns transaction's event id.- Returns:
- the event id
-
scheduleFinish
void scheduleFinish()Schedules when transaction should be automatically finished. -
setContext
-
getContexts
-