Recorder include/exclude- which has priority?

I am trying to save my glucose sensor values for 90 days. Here is my recorder component:

recorder:
  auto_purge: true #default: true

  # Keep all entity history for 90 days
  purge_keep_days: 90
  
  # Customize retention period for specific entities
  include:
      entities:
        - sensor.dexcom_steve_glucose_value
      
  exclude:
    entities:
      - sensor.date
    domains:
      - sensor
      - switch
    entity_globs:
      - sensor.sun*
      - weather.*

Which has priority? The include of the specific sensor or the exclude of domains?

Also, why does the history get deleted when doing a reboot?