create SpanParser to separate span creation from parsing