Package io.sentry.protocol
Class SentrySpan
java.lang.Object
io.sentry.protocol.SentrySpan
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionSentrySpan(@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, @Nullable Map<String, Object> data) -
Method Summary
Modifier and TypeMethodDescriptiongetData()@Nullable String@NotNull StringgetOp()@Nullable String@Nullable SpanId@NotNull SpanId@NotNull Double@Nullable SpanStatusgetTags()@Nullable Double@NotNull SentryIdbooleanvoidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidsetUnknown(@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, @Nullable @Nullable Map<String, Object> data)
-
-
Method Details
-
isFinished
public boolean isFinished() -
getStartTimestamp
-
getTimestamp
-
getTraceId
-
getSpanId
-
getParentSpanId
-
getOp
-
getDescription
-
getStatus
-
getTags
-
getData
-
getOrigin
-
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
-