You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only recently discovered that calling bugsnag.Configure forks the current process. I'm (now) aware that it is mentioned in the documentation as a side note, but there is still I think a missing piece to the puzzle; detecting parent/child process status.
The example in the panicwrap library's README has a clear example including detecting whether a program is the parent or child. This is useful, as the parent should ostensibly act only as the monitor, not reserve any additional resources and let the child do all the work.
Currently this mechanism is hidden away by the bugsnag library. Because of that we've opted to disable the automatic panic detection, as it's useless in it's current form: Our program relies on unique resources, meaning the child process is doing nothing more than idling away, using up a chunk of memory for no purpose whatsoever, and in effect this means the panicwrap isn't working as intended.
As I find the automatic panic reporting an appealing feature and would value having it as part of our monitoring toolkit, I would highly appreciate if either bugsnag.Configure returned the parent/child status of the current process, or that a separate API was made available for this purpose.
The text was updated successfully, but these errors were encountered:
nikcorg
changed the title
Panicwrap parent/child process status detection
Expose panicwrap parent/child process status detection
Oct 2, 2020
We'll need to give this some thought to decide on the best API, but in principle exposing the behavior more transparently is a reasonable request. This is now on our backlog to take a look at when resources allow.
I only recently discovered that calling
bugsnag.Configure
forks the current process. I'm (now) aware that it is mentioned in the documentation as a side note, but there is still I think a missing piece to the puzzle; detecting parent/child process status.The example in the panicwrap library's README has a clear example including detecting whether a program is the parent or child. This is useful, as the parent should ostensibly act only as the monitor, not reserve any additional resources and let the child do all the work.
Currently this mechanism is hidden away by the bugsnag library. Because of that we've opted to disable the automatic panic detection, as it's useless in it's current form: Our program relies on unique resources, meaning the child process is doing nothing more than idling away, using up a chunk of memory for no purpose whatsoever, and in effect this means the panicwrap isn't working as intended.
As I find the automatic panic reporting an appealing feature and would value having it as part of our monitoring toolkit, I would highly appreciate if either
bugsnag.Configure
returned the parent/child status of the current process, or that a separate API was made available for this purpose.The text was updated successfully, but these errors were encountered: