function addGlobalErrorInstrumentationHandler(handler) {
  const type = 'error';
  _handlers.addHandler(type, handler);
  _handlers.maybeInstrument(type, instrumentError);
}
Add an instrumentation handler for when an error is captured by the global error handler.

Use at your own risk, this might break without changelog notice, only used internally.
@hidden