public class Trace
extends java.lang.Object
| Constructor and Description |
|---|
Trace()
Constructor for class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Gets the ID of the Trace.
|
java.util.List<io.opencensus.proto.trace.v1.Span> |
getSpans()
Gets all the Spans from this Trace.
|
void |
setSpans(java.util.List<io.opencensus.proto.trace.v1.Span> spans)
Sets the Spans of this Trace.
|
@NonNull public java.lang.String getId()
@Nullable public java.util.List<io.opencensus.proto.trace.v1.Span> getSpans()
public void setSpans(@Nullable
java.util.List<io.opencensus.proto.trace.v1.Span> spans)
spans - the List of Spans to set.