diff --git a/stackdriver-errors.js b/stackdriver-errors.js index 6e9f868..b175801 100644 --- a/stackdriver-errors.js +++ b/stackdriver-errors.js @@ -52,7 +52,10 @@ StackdriverErrorReporter.prototype.start = function(config) { this.projectId = config.projectId; this.targetUrl = config.targetUrl; this.context = config.context || {}; - this.serviceContext = {service: config.service || 'web'}; + this.serviceContext = {service: config.service || 'web', + resourceType: config.resourceType || 'reported_errors', + severity: 'ERROR' || config.severity + }; if (config.version) { this.serviceContext.version = config.version; }