def increment_sdk_error()

in codeguru_profiler_agent/agent_metadata/agent_debug_info.py [0:0]


    def increment_sdk_error(self, error_type):
        """
        ErrorsCount is the umbrella of all the kinds of error we want to capture. Currently we have only SdkClientErrors
        in it. SdkClientErrors is comprised of different API level errors like ConfigureAgentErrors,
        PostAgentProfileErrors, CreateProfilingGroupErrors.
        :param error_type: The type of API level error that we want to capture.
        """
        self.errors_count += 1
        self.sdk_client_errors += 1

        """
        Special handling for ResourceNotFoundException errors.
        For example configureAgentRnfeAutoCreateEnabledErrors is also a configureAgentErrors.
        """
        if error_type == "configureAgentErrors":
            self.configure_agent_errors += 1
        elif error_type == "configureAgentRnfeAutoCreateEnabledErrors":
            self.configure_agent_errors += 1
            self.configure_agent_rnfe_auto_create_enabled_errors += 1
        elif error_type == "createProfilingGroupErrors":
            self.create_profiling_group_errors += 1
        elif error_type == "postAgentProfileErrors":
            self.post_agent_profile_errors += 1
        elif error_type == "postAgentProfileRnfeAutoCreateEnabledErrors":
            self.post_agent_profile_errors += 1
            self.post_agent_profile_rnfe_auto_create_enabled_errors += 1