Skip to content

Commit

Permalink
Merge branch 'tim/sentry_handle_no_devid' into 'master'
Browse files Browse the repository at this point in the history
fix(sentry): Device ID can be null if we throw before finishing init

See merge request TankerHQ/sdk-js!1009
  • Loading branch information
tux3 committed Jan 15, 2024
2 parents f90300f + e0f6763 commit 9645692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Session/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class Session extends EventEmitter {
const localUser = this._localUserManager.localUser;
this._sentry?.setTag('tanker_app_id', utils.toBase64(localUser.trustchainId));
this._sentry?.setTag('tanker_user_id', utils.toBase64(localUser.userId));
this._sentry?.setTag('tanker_device_id', utils.toBase64(localUser.deviceId));
this._sentry?.setTag('tanker_device_id', localUser.isInitialized ? utils.toBase64(localUser.deviceId) : 'null');
this._sentry?.setTag('tanker_instance_id', this._client.instanceId);
this._sentry?.setTag('tanker_status', this.statusName);
this._sentryLimiter?.flush();
Expand Down

0 comments on commit 9645692

Please sign in to comment.