reason: String()

in packages/fxa-content-server/server/lib/glean/server_events.js [487:686]


        reason: String(reason),
      },
    };
    this.#record({
      user_agent,
      ip_address,
      account_user_id,
      account_user_id_sha256,
      relying_party_oauth_client_id,
      relying_party_service,
      session_device_type,
      session_entrypoint,
      session_entrypoint_experiment,
      session_entrypoint_variation,
      session_flow_id,
      utm_campaign,
      utm_content,
      utm_medium,
      utm_source,
      utm_term,
      event,
    });
  }
  /**
   * Record and submit a account_password_reset event:
   * Forgot Password Complete Successful completion of the forgot password funnel.
   * Event is logged using internal mozlog logger.
   *
   * @param {string} user_agent - The user agent.
   * @param {string} ip_address - The IP address. Will be used to decode Geo
   *                              information and scrubbed at ingestion.
   * @param {string} account_user_id - The firefox/mozilla account id.
   * @param {string} account_user_id_sha256 - A hex string of a sha256 hash of the account's uid.
   * @param {string} relying_party_oauth_client_id - The client id of the relying party.
   * @param {string} relying_party_service - The service name of the relying party.
   * @param {string} session_device_type - one of 'mobile', 'tablet', or ''.
   * @param {string} session_entrypoint - Entrypoint to the service.
   * @param {string} session_entrypoint_experiment - Identifier for the experiment the user is part of at the entrypoint.
   * @param {string} session_entrypoint_variation - Identifier for the experiment variation the user is part of at the entrypoint.
   * @param {string} session_flow_id - an ID generated by FxA for its flow metrics.
   * @param {string} utm_campaign - A marketing campaign.  For example, if a user signs into FxA from selecting a Mozilla VPN plan on Mozilla VPN's product site, then the value of this metric could be 'vpn-product-page'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters.  The special value of 'page+referral+-+not+part+of+a+campaign' is also allowed..
   * @param {string} utm_content - The content on which the user acted.  For example, if the user clicked on the (previously available) "Get started here" link in "Looking for Firefox Sync? Get started here", then the value for this metric would be 'fx-sync-get-started'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_medium - The "medium" on which the user acted.  For example, if the user clicked on a link in an email, then the value of this metric would be 'email'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_source - The source from where the user started.  For example, if the user clicked on a link on the Mozilla accounts web site, this value could be 'fx-website'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_term - This metric is similar to the `utm.source`; it is used in the Firefox browser.  For example, if the user started from about:welcome, then the value could be 'aboutwelcome-default-screen'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   */
  recordAccountPasswordReset({
    user_agent,
    ip_address,
    account_user_id,
    account_user_id_sha256,
    relying_party_oauth_client_id,
    relying_party_service,
    session_device_type,
    session_entrypoint,
    session_entrypoint_experiment,
    session_entrypoint_variation,
    session_flow_id,
    utm_campaign,
    utm_content,
    utm_medium,
    utm_source,
    utm_term,
  }) {
    const event = {
      category: 'account',
      name: 'password_reset',
    };
    this.#record({
      user_agent,
      ip_address,
      account_user_id,
      account_user_id_sha256,
      relying_party_oauth_client_id,
      relying_party_service,
      session_device_type,
      session_entrypoint,
      session_entrypoint_experiment,
      session_entrypoint_variation,
      session_flow_id,
      utm_campaign,
      utm_content,
      utm_medium,
      utm_source,
      utm_term,
      event,
    });
  }
  /**
   * Record and submit a inactive_account_deletion_deletion_scheduled event:
   * The cloud task to delete the account was scheduled.
   * Event is logged using internal mozlog logger.
   *
   * @param {string} user_agent - The user agent.
   * @param {string} ip_address - The IP address. Will be used to decode Geo
   *                              information and scrubbed at ingestion.
   * @param {string} account_user_id - The firefox/mozilla account id.
   * @param {string} account_user_id_sha256 - A hex string of a sha256 hash of the account's uid.
   * @param {string} relying_party_oauth_client_id - The client id of the relying party.
   * @param {string} relying_party_service - The service name of the relying party.
   * @param {string} session_device_type - one of 'mobile', 'tablet', or ''.
   * @param {string} session_entrypoint - Entrypoint to the service.
   * @param {string} session_entrypoint_experiment - Identifier for the experiment the user is part of at the entrypoint.
   * @param {string} session_entrypoint_variation - Identifier for the experiment variation the user is part of at the entrypoint.
   * @param {string} session_flow_id - an ID generated by FxA for its flow metrics.
   * @param {string} utm_campaign - A marketing campaign.  For example, if a user signs into FxA from selecting a Mozilla VPN plan on Mozilla VPN's product site, then the value of this metric could be 'vpn-product-page'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters.  The special value of 'page+referral+-+not+part+of+a+campaign' is also allowed..
   * @param {string} utm_content - The content on which the user acted.  For example, if the user clicked on the (previously available) "Get started here" link in "Looking for Firefox Sync? Get started here", then the value for this metric would be 'fx-sync-get-started'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_medium - The "medium" on which the user acted.  For example, if the user clicked on a link in an email, then the value of this metric would be 'email'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_source - The source from where the user started.  For example, if the user clicked on a link on the Mozilla accounts web site, this value could be 'fx-website'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_term - This metric is similar to the `utm.source`; it is used in the Firefox browser.  For example, if the user started from about:welcome, then the value could be 'aboutwelcome-default-screen'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   */
  recordInactiveAccountDeletionDeletionScheduled({
    user_agent,
    ip_address,
    account_user_id,
    account_user_id_sha256,
    relying_party_oauth_client_id,
    relying_party_service,
    session_device_type,
    session_entrypoint,
    session_entrypoint_experiment,
    session_entrypoint_variation,
    session_flow_id,
    utm_campaign,
    utm_content,
    utm_medium,
    utm_source,
    utm_term,
  }) {
    const event = {
      category: 'inactive_account_deletion',
      name: 'deletion_scheduled',
    };
    this.#record({
      user_agent,
      ip_address,
      account_user_id,
      account_user_id_sha256,
      relying_party_oauth_client_id,
      relying_party_service,
      session_device_type,
      session_entrypoint,
      session_entrypoint_experiment,
      session_entrypoint_variation,
      session_flow_id,
      utm_campaign,
      utm_content,
      utm_medium,
      utm_source,
      utm_term,
      event,
    });
  }
  /**
   * Record and submit a inactive_account_deletion_deletion_skipped event:
   * The scheduled deletion of an inactive account was skipped.
   * Event is logged using internal mozlog logger.
   *
   * @param {string} user_agent - The user agent.
   * @param {string} ip_address - The IP address. Will be used to decode Geo
   *                              information and scrubbed at ingestion.
   * @param {string} account_user_id - The firefox/mozilla account id.
   * @param {string} account_user_id_sha256 - A hex string of a sha256 hash of the account's uid.
   * @param {string} relying_party_oauth_client_id - The client id of the relying party.
   * @param {string} relying_party_service - The service name of the relying party.
   * @param {string} session_device_type - one of 'mobile', 'tablet', or ''.
   * @param {string} session_entrypoint - Entrypoint to the service.
   * @param {string} session_entrypoint_experiment - Identifier for the experiment the user is part of at the entrypoint.
   * @param {string} session_entrypoint_variation - Identifier for the experiment variation the user is part of at the entrypoint.
   * @param {string} session_flow_id - an ID generated by FxA for its flow metrics.
   * @param {string} utm_campaign - A marketing campaign.  For example, if a user signs into FxA from selecting a Mozilla VPN plan on Mozilla VPN's product site, then the value of this metric could be 'vpn-product-page'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters.  The special value of 'page+referral+-+not+part+of+a+campaign' is also allowed..
   * @param {string} utm_content - The content on which the user acted.  For example, if the user clicked on the (previously available) "Get started here" link in "Looking for Firefox Sync? Get started here", then the value for this metric would be 'fx-sync-get-started'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_medium - The "medium" on which the user acted.  For example, if the user clicked on a link in an email, then the value of this metric would be 'email'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_source - The source from where the user started.  For example, if the user clicked on a link on the Mozilla accounts web site, this value could be 'fx-website'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} utm_term - This metric is similar to the `utm.source`; it is used in the Firefox browser.  For example, if the user started from about:welcome, then the value could be 'aboutwelcome-default-screen'.  The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
   * @param {string} reason - The reason the deletion was skipped..
   */
  recordInactiveAccountDeletionDeletionSkipped({
    user_agent,
    ip_address,
    account_user_id,
    account_user_id_sha256,
    relying_party_oauth_client_id,
    relying_party_service,
    session_device_type,
    session_entrypoint,
    session_entrypoint_experiment,
    session_entrypoint_variation,
    session_flow_id,
    utm_campaign,
    utm_content,
    utm_medium,
    utm_source,
    utm_term,
    reason,
  }) {
    const event = {
      category: 'inactive_account_deletion',
      name: 'deletion_skipped',
      extra: {