function currentOTelSpan() {
  const active = otel.trace.getActiveSpan()

  if (!active || active?.constructor?.name === 'NonRecordingSpan') {
    return null
  }

  return active?.spanContext()
}
Gets the current active span context.
Only returns if span is not `NonRecordingSpan`(meaning it was not sampled)
@returns {object|null} active span context