From 5af85d0b02b47ca93e963e0f3ddd26b7a927e1f5 Mon Sep 17 00:00:00 2001 From: Delisa Mason Date: Fri, 17 Feb 2017 13:54:05 -0800 Subject: [PATCH] Allow setting codeBundleId as a config option --- lib/Bugsnag.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Bugsnag.js b/lib/Bugsnag.js index 52244d8e..3690e0c3 100644 --- a/lib/Bugsnag.js +++ b/lib/Bugsnag.js @@ -81,6 +81,7 @@ export class Client { } const report = new Report(this.config.apiKey, error); + report.addMetadata('app', 'codeBundleId', this.config.codeBundleId); for (callback of this.config.beforeSendCallbacks) { if (callback(report) === false) { @@ -156,6 +157,7 @@ export class Configuration { this.notifyReleaseStages = undefined; this.releaseStage = undefined; this.appVersion = undefined; + this.codeBundleId = undefined; this.autoNotify = true; this.handlePromiseRejections = !__DEV__; // prefer banner in dev mode } @@ -199,6 +201,7 @@ export class Configuration { toJSON = () => { return { apiKey: this.apiKey, + codeBundleId: this.codeBundleId, releaseStage: this.releaseStage, notifyReleaseStages: this.notifyReleaseStages, endpoint: this.delivery.endpoint,