Tracking Sessions and Calling a web service
There seems to be a bit of confusion in your code: the set_tracking_params() function calls itself, which would would result in an infinite recursion. 

That being said, you're calling the set_eddy_tracking_params () function directly in the PHP file which means it will probably be executed before Drupal's full bootstrap has run, and before the wsclient module file has been loaded.

If you're trying to run this function on every page then hook_init() would be the best place for it; it's called early on in every page load:

function MODULENAME_init() {
  set_eddy_tracking_params();
}