It seems when calling setName() late, after child spans have already been attached and finished, then the value is empty.