Package io.sentry.protocol
Class SentryTransaction
java.lang.Object
io.sentry.SentryBaseEvent
io.sentry.protocol.SentryTransaction
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
@Internal
public final class SentryTransaction
extends SentryBaseEvent
implements JsonUnknown, JsonSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from class io.sentry.SentryBaseEvent
SentryBaseEvent.Serializer -
Field Summary
Fields inherited from class io.sentry.SentryBaseEvent
DEFAULT_PLATFORM, throwable -
Constructor Summary
ConstructorsConstructorDescriptionSentryTransaction(@NotNull SentryTracer sentryTracer) SentryTransaction(@Nullable String transaction, @NotNull Double startTimestamp, @Nullable Double timestamp, @NotNull List<SentrySpan> spans, @NotNull Map<String, @NotNull MeasurementValue> measurements, @Nullable Map<String, List<MetricSummary>> metricsSummaries, @NotNull TransactionInfo transactionInfo) -
Method Summary
Modifier and TypeMethodDescription@NotNull Map<String,@NotNull MeasurementValue> @Nullable Map<String,List<MetricSummary>> @Nullable TracesSamplingDecision@NotNull List<SentrySpan>getSpans()@NotNull Double@Nullable SpanStatus@Nullable Double@Nullable String@NotNull StringgetType()booleanbooleanvoidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidsetMetricSummaries(@Nullable Map<String, List<MetricSummary>> metricSummaries) voidsetUnknown(@Nullable Map<String, Object> unknown) Methods inherited from class io.sentry.SentryBaseEvent
addBreadcrumb, addBreadcrumb, getBreadcrumbs, getContexts, getDebugMeta, getDist, getEnvironment, getEventId, getExtra, getExtras, getPlatform, getRelease, getRequest, getSdk, getServerName, getTag, getTags, getThrowable, getThrowableMechanism, getUser, removeExtra, removeTag, setBreadcrumbs, setDebugMeta, setDist, setEnvironment, setEventId, setExtra, setExtras, setPlatform, setRelease, setRequest, setSdk, setServerName, setTag, setTags, setThrowable, setUser
-
Constructor Details
-
SentryTransaction
-
SentryTransaction
@Internal public SentryTransaction(@Nullable @Nullable String transaction, @NotNull @NotNull Double startTimestamp, @Nullable @Nullable Double timestamp, @NotNull @NotNull List<SentrySpan> spans, @NotNull @NotNull Map<String, @NotNull MeasurementValue> measurements, @Nullable @Nullable Map<String, List<MetricSummary>> metricsSummaries, @NotNull @NotNull TransactionInfo transactionInfo)
-
-
Method Details
-
getSpans
-
isFinished
public boolean isFinished() -
getTransaction
-
getStartTimestamp
-
getTimestamp
-
getType
-
getStatus
-
isSampled
public boolean isSampled() -
getSamplingDecision
-
getMeasurements
-
getMetricSummaries
-
setMetricSummaries
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-