Package io.sentry.protocol
Class SentrySpan
java.lang.Object
io.sentry.protocol.SentrySpan
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorDescriptionSentrySpan
(@NotNull Span span) SentrySpan
(@NotNull Span span, @Nullable Map<String, Object> data) SentrySpan
(@NotNull Double startTimestamp, @Nullable Double timestamp, @NotNull SentryId traceId, @NotNull SpanId spanId, @Nullable SpanId parentSpanId, @NotNull String op, @Nullable String description, @Nullable SpanStatus status, @Nullable String origin, @NotNull Map<String, String> tags, @NotNull Map<String, MeasurementValue> measurements, @Nullable Map<String, List<MetricSummary>> metricSummaries, @Nullable Map<String, Object> data) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
@Nullable String
@NotNull Map<String,
MeasurementValue> @Nullable Map<String,
List<MetricSummary>> @NotNull String
getOp()
@Nullable String
@Nullable SpanId
@NotNull SpanId
@NotNull Double
@Nullable SpanStatus
getTags()
@Nullable Double
@NotNull SentryId
boolean
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
void
setUnknown
(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
SentrySpan
-
SentrySpan
-
SentrySpan
@Internal public SentrySpan(@NotNull @NotNull Double startTimestamp, @Nullable @Nullable Double timestamp, @NotNull @NotNull SentryId traceId, @NotNull @NotNull SpanId spanId, @Nullable @Nullable SpanId parentSpanId, @NotNull @NotNull String op, @Nullable @Nullable String description, @Nullable @Nullable SpanStatus status, @Nullable @Nullable String origin, @NotNull @NotNull Map<String, String> tags, @NotNull @NotNull Map<String, MeasurementValue> measurements, @Nullable @Nullable Map<String, List<MetricSummary>> metricSummaries, @Nullable @Nullable Map<String, Object> data)
-
-
Method Details
-
isFinished
public boolean isFinished() -
getStartTimestamp
-
getTimestamp
-
getTraceId
-
getSpanId
-
getParentSpanId
-
getOp
-
getDescription
-
getStatus
-
getTags
-
getData
-
setData
-
getOrigin
-
getMeasurements
-
getMetricsSummaries
-
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
-