macro to enable scoped trace section functionality