@Test public void testToString() { assertThat(first.toString()).isEqualTo( "SpanContext{traceId=TraceId{traceId=0000000000000000000000000000000a}," + " spanId=SpanId{spanId=30}, traceOptions=TraceOptions{optionsMask=0}}"); }
@Override public String toString() { return MoreObjects.toStringHelper(this) .add("traceId", traceId) .add("spanId", spanId) .add("traceOptions", traceOptions) .toString(); }
SpanContext { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("traceId", traceId) .add("spanId", spanId) .add("traceOptions", traceOptions) .toString(); } }
SpanContext { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("traceId", traceId) .add("spanId", spanId) .add("traceOptions", traceOptions) .toString(); } SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions); }
SpanContext { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("traceId", traceId) .add("spanId", spanId) .add("traceOptions", traceOptions) .toString(); } SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); TraceId getTraceId(); SpanId getSpanId(); TraceOptions getTraceOptions(); SpanContext overrideOptions(TraceOptions overrideOptions); }
SpanContext { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("traceId", traceId) .add("spanId", spanId) .add("traceOptions", traceOptions) .toString(); } SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); TraceId getTraceId(); SpanId getSpanId(); TraceOptions getTraceOptions(); SpanContext overrideOptions(TraceOptions overrideOptions);  }