Update log management/monitoring code, tests, and apiclient sample code