Operations tracker: Use g variable to prevent tracking queries from other requests