All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.sdk.entities.tracing.SpanLogsDTO Maven / Gradle / Ivy

package com.wavefront.sdk.entities.tracing;

import com.wavefront.sdk.common.annotation.Nullable;

import java.util.List;
import java.util.UUID;

/**
 * DTO for the spanLogs to be sent to Wavefront.
 *
 * @author Srujan Narkedamalli ([email protected]).
 */
public class SpanLogsDTO {
  private final UUID traceId;
  private final UUID spanId;
  private final List logs;

  // For sampling. If null, span log will always be sampled (i.e., retained).
  @Nullable
  private final String span;

  public SpanLogsDTO(UUID traceId, UUID spanId, List spanLogs) {
    this(traceId, spanId, spanLogs, null);
  }

  public SpanLogsDTO(UUID traceId, UUID spanId, List spanLogs, @Nullable String span) {
    this.traceId = traceId;
    this.spanId = spanId;
    this.logs = spanLogs;
    this.span = span;
  }

  public UUID getTraceId() {
    return traceId;
  }

  public UUID getSpanId() {
    return spanId;
  }

  public List getLogs() {
    return logs;
  }

  public String getSpan() {
    return span;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy