* An Error handler that sends errors to the Stackdriver Error Reporting API.
*/
varStackdriverErrorReporter=function(){};
/**
* Initialize the StackdriverErrorReporter object.
* @param {Object} config - the init configuration.
* @param {Object} [config.context={}] - the context in which the error occurred.
* @param {string} [config.context.user] - the user who caused or was affected by the error.
* @param {String} config.key - the API key to use to call the API.
* @param {String} config.projectId - the Google Cloud Platform project ID to report errors to.
* @param {Function} config.customReportingFunction - Custom function to be called with the error payload for reporting, instead of HTTP request. The function should return a Promise.
* @param {String} [config.service=web] - service identifier.
* @param {String} [config.version] - version identifier.
* @param {Boolean} [config.reportUncaughtExceptions=true] - Set to false to stop reporting unhandled exceptions.
* @param {Boolean} [config.disabled=false] - Set to true to not report errors when calling report(), this can be used when developping locally.