Package io.sentry
Interface ITransaction
- All Superinterfaces:
ISpan
- All Known Implementing Classes:
NoOpTransaction
,SentryTracer
-
Method Summary
Modifier and TypeMethodDescription@NotNull Contexts
@NotNull SentryId
Returns transaction's event id.@Nullable Span
Returns the latest span that is not finished.@NotNull String
getName()
Returns transaction name.@Nullable TracesSamplingDecision
getSpans()
@NotNull TransactionNameSource
Returns the source of the transaction name.@Nullable Boolean
Returns if the profile of a transaction is sampled.@Nullable Boolean
Returns if transaction is sampled.void
Schedules when transaction should be automatically finished.void
setContext
(@NotNull String key, @NotNull Object context) void
Sets transaction name.void
setName
(@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
-