optimize internal span creation (#17)