Class SentrySpan

java.lang.Object
io.sentry.protocol.SentrySpan
All Implemented Interfaces:
JsonSerializable, JsonUnknown

@Internal public final class SentrySpan extends Object implements JsonUnknown, JsonSerializable
  • Constructor Details

    • SentrySpan

      public SentrySpan(@NotNull @NotNull Span span)
    • SentrySpan

      @Internal public SentrySpan(@NotNull @NotNull Span span, @Nullable @Nullable Map<String,Object> data)
    • 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

      @NotNull public @NotNull Double getStartTimestamp()
    • getTimestamp

      @Nullable public @Nullable Double getTimestamp()
    • getTraceId

      @NotNull public @NotNull SentryId getTraceId()
    • getSpanId

      @NotNull public @NotNull SpanId getSpanId()
    • getParentSpanId

      @Nullable public @Nullable SpanId getParentSpanId()
    • getOp

      @NotNull public @NotNull String getOp()
    • getDescription

      @Nullable public @Nullable String getDescription()
    • getStatus

      @Nullable public @Nullable SpanStatus getStatus()
    • getTags

      @NotNull public @NotNull Map<String,String> getTags()
    • getData

      @Nullable public @Nullable Map<String,Object> getData()
    • getOrigin

      @Nullable public @Nullable String getOrigin()
    • serialize

      public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException
      Specified by:
      serialize in interface JsonSerializable
      Throws:
      IOException
    • getUnknown

      @Nullable public @Nullable Map<String,Object> getUnknown()
      Specified by:
      getUnknown in interface JsonUnknown
    • setUnknown

      public void setUnknown(@Nullable @Nullable Map<String,Object> unknown)
      Specified by:
      setUnknown in interface JsonUnknown