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
Modifier and TypeClassDescriptionstatic final class
static final class
Nested classes/interfaces inherited from class io.sentry.SentryBaseEvent
SentryBaseEvent.Serializer
-
Field Summary
Fields inherited from class io.sentry.SentryBaseEvent
DEFAULT_PLATFORM, throwable
-
Constructor Summary
ConstructorDescriptionSentryTransaction
(@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 String
getType()
boolean
boolean
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setMetricSummaries
(@Nullable Map<String, List<MetricSummary>> metricSummaries) void
setUnknown
(@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:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-