move query by trace ids stat to proper place