function captureMessage(
  message,
  // eslint-disable-next-line deprecation/deprecation
  captureContext,
) {
  // This is necessary to provide explicit scopes upgrade, without changing the original
  // arity of the `captureMessage(message, level)` method.
  const level = typeof captureContext === 'string' ? captureContext : undefined;
  const context = typeof captureContext !== 'string' ? { captureContext } : undefined;
  // eslint-disable-next-line deprecation/deprecation
  return hub.getCurrentHub().captureMessage(message, level, context);
}
Captures a message event and sends it to Sentry.

@param exception The exception to capture.
@param captureContext Define the level of the message or pass in additional data to attach to the message.
@returns the id of the captured message.