Add proxy trace hooks.