sentry-electron icon indicating copy to clipboard operation
sentry-electron copied to clipboard

Sync global scope from render process to main process

Open zation opened this issue 2 years ago • 2 comments

Problem Statement

It seems only current scope and isolated scope are synced to main process. Why not to sync global scope to main process? https://github.com/getsentry/sentry-electron/blob/master/src/common/scope.ts

Solution Brainstorm

Can we add getGlobalScope().addScopeListener? Or is there any problem to do so?

zation avatar Nov 26 '24 05:11 zation

Is there any reason you're using the global scope rather than the current scope?

timfish avatar Nov 27 '24 00:11 timfish

Is there any reason you're using the global scope rather than the current scope?

I want to use it to store data that should apply to all events, such as environmental information.

zation avatar Nov 29 '24 06:11 zation