function captureEvent(event, hint) {
  // eslint-disable-next-line deprecation/deprecation
  return hub.getCurrentHub().captureEvent(event, hint);
}
Callback to set context information onto the scope.
@param callback Callback function that receives Scope.

@deprecated Use getCurrentScope() directly.