Object writeReplace() throws ObjectStreamException {
    return new SerializedForm(SpanBytesEncoder.PROTO3.encode(this));
  }
Inspired by {@code okio.Buffer.writeLong}
zipkin/src/main/java/zipkin2/Span.java