/** * Returns true if this {@code SpanContext} is valid. * * @return true if this {@code SpanContext} is valid. * @since 0.5 */ public boolean isValid() { return traceId.isValid() && spanId.isValid(); }
/** * Returns true if this {@code SpanContext} is valid. * * @return true if this {@code SpanContext} is valid. */ public boolean isValid() { return traceId.isValid() && spanId.isValid(); }
.localEndpoint(localEndpoint); if (spanData.getParentSpanId() != null && spanData.getParentSpanId().isValid()) { spanBuilder.parentId(spanData.getParentSpanId().toLowerBase16());
spanBuilder.setChildSpanCount(Int32Value.newBuilder().setValue(childSpanCount).build()); if (spanData.getParentSpanId() != null && spanData.getParentSpanId().isValid()) { spanBuilder.setParentSpanId(spanData.getParentSpanId().toLowerBase16());
spanBuilder.setChildSpanCount(Int32Value.newBuilder().setValue(childSpanCount).build()); if (spanData.getParentSpanId() != null && spanData.getParentSpanId().isValid()) { spanBuilder.setParentSpanId(spanData.getParentSpanId().toLowerBase16());
if (parentSpanId != null && parentSpanId.isValid()) { spanBuilder.setParentSpanId(toByteString(parentSpanId.getBytes()));