The temperature is measured at the RTD element for RTD probes, or the thermocouple junction for thermocouple probes. This is typically close to tip of the probe in most cases, so the temperature is measured close to the tip of the probe.
However, response time is typically better if more of the probe is exposed to the environment/product/media/etc.