Description
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.