function spanIsSpanClass(span) {
  return typeof (span ).getSpanJSON === 'function';
}
Sadly, due to circular dependency checks we cannot actually import the Span class here and check for instanceof.
:( So instead we approximate this by checking if it has the `getSpanJSON` method.