implement query debug info for HTTP queries