agent0.hyperlogs.rollbar_utilities
Utilities for rollbar.
Attributes
Functions
|
Initializes the rollbar sdk. |
|
Logs a message to the rollbar service. |
|
Logs an exception to the rollbar service. |
Module Contents
- agent0.hyperlogs.rollbar_utilities.ROLLBAR_API_KEY
- agent0.hyperlogs.rollbar_utilities.initialize_rollbar(environment_name: str) bool
Initializes the rollbar sdk.
- Parameters:
environment_name (str) – The name of the environment. Should be something like localfuzzbots or aws.fuzzbots
- Returns:
True if rollbar is initialized.
- Return type:
bool
- agent0.hyperlogs.rollbar_utilities.log_rollbar_message(message: str, log_level: int, extra_data: dict | None = None)
Logs a message to the rollbar service.
- Parameters:
message (str) – The message to send to rollbar.
log_level (int) – The logging level enum value.
extra_data (dict, optional.) – Extra data to send to rollbar. This is usually the custom crash report data.
- agent0.hyperlogs.rollbar_utilities.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.
- Parameters:
exception (Exception) – The exception to log.
log_level (int) – The logging level enum value.
extra_data (dict, optional.) – Extra data to send to rollbar. This usually contains the custom crash report json
rollbar_log_prefix (str, optional) – The prefix to prepend to rollbar exception messages