agent0.hyperlogs.rollbar_utilities ================================== .. py:module:: agent0.hyperlogs.rollbar_utilities .. autoapi-nested-parse:: Utilities for rollbar. .. !! processed by numpydoc !! Attributes ---------- .. autoapisummary:: agent0.hyperlogs.rollbar_utilities.ROLLBAR_API_KEY Functions --------- .. autoapisummary:: agent0.hyperlogs.rollbar_utilities.initialize_rollbar agent0.hyperlogs.rollbar_utilities.log_rollbar_message agent0.hyperlogs.rollbar_utilities.log_rollbar_exception Module Contents --------------- .. py:data:: ROLLBAR_API_KEY .. py:function:: initialize_rollbar(environment_name: str) -> bool Initializes the rollbar sdk. :param environment_name: The name of the environment. Should be something like localfuzzbots or aws.fuzzbots :type environment_name: str :returns: True if rollbar is initialized. :rtype: bool .. !! processed by numpydoc !! .. py:function:: log_rollbar_message(message: str, log_level: int, extra_data: dict | None = None) Logs a message to the rollbar service. :param message: The message to send to rollbar. :type message: str :param log_level: The logging level enum value. :type log_level: int :param extra_data: Extra data to send to rollbar. This is usually the custom crash report data. :type extra_data: dict, optional. .. !! processed by numpydoc !! .. py:function:: log_rollbar_exception(exception: BaseException, log_level: int, extra_data: dict | None = None, rollbar_log_prefix: str | None = None) Logs an exception to the rollbar service. :param exception: The exception to log. :type exception: Exception :param log_level: The logging level enum value. :type log_level: int :param extra_data: Extra data to send to rollbar. This usually contains the custom crash report json :type extra_data: dict, optional. :param rollbar_log_prefix: The prefix to prepend to rollbar exception messages :type rollbar_log_prefix: str, optional .. !! processed by numpydoc !!