search: Improve tracing of dynamic search contexts
Created by: tsenart
This commit improves tracing of dynamic search contexts.
Follow up from #29327
Created by: tsenart
This commit improves tracing of dynamic search contexts.
Follow up from #29327