class Honeybadger::Configuration
- Honeybadger::Configuration
- Reference
- Object
Defined in:
honeybadger/configuration.crConstructors
Instance Method Summary
-
#api_key : String
A Honeybadger API key.
-
#api_key=(api_key : String)
A Honeybadger API key.
-
#development? : Bool
Is the current environment considered a development environment?
-
#development_environments : Array(String)
The list of environments considered "development"
-
#development_environments=(development_environments : Array(String))
The list of environments considered "development"
-
#development_environments=(value : String)
Configure development environment list with a string.
-
#endpoint : Path
The API endpoint for sending Honeybadger payloads.
-
#endpoint=(endpoint : Path)
The API endpoint for sending Honeybadger payloads.
-
#endpoint=(path : String) : String
Configures API endpoint with a string.
-
#environment : String | Nil
The current app environment.
-
#environment=(environment : String | Nil)
The current app environment.
-
#filter_keys : Array(String)
A list of keys whose values are replaced with "[FILTERED]" in sensitive data objects.
-
#filter_keys=(filter_keys : Array(String))
A list of keys whose values are replaced with "[FILTERED]" in sensitive data objects.
-
#hostname : String
The system or container hostname.
-
#hostname=(hostname : String)
The system or container hostname.
-
#merge_log_context : Bool
Merge the log context into the Honeybadger payload before sending errors to the reporting API.
-
#merge_log_context=(merge_log_context : Bool)
Merge the log context into the Honeybadger payload before sending errors to the reporting API.
-
#project_root : String
The path to the projects source code.
-
#project_root=(project_root : String)
The path to the projects source code.
-
#report_data : Bool | Nil
Explicitly override the development environment check.
-
#report_data=(report_data : Bool | Nil)
Explicitly override the development environment check.
-
#report_data=(value : String) : Bool
Configures report_data with a string.
-
#report_data? : Bool
Should Honeybadger.cr send data to the honeybadger api?
-
#revision : String
The project git revision.
-
#revision=(revision : String)
The project git revision.
-
#set_from_env
Reads configuration from honeybadger prefixed environment variables
Constructor Detail
Instance Method Detail
The list of environments considered "development"
Configure development environment list with a string.
Used to set the value from an environment variable. Input is split on commas and striped of leading/trailing whitespace.
config.development_environments = "development, testing, staging"
config.development_environments # => ["development", "testing", "staging"]
Configures API endpoint with a string.
Used to set the value from an environment variable.
config.endpoint = "http://new_api.honeybadger.io"
config.endpoint # => Path["http://new_api.honeybadger.io"]
A list of keys whose values are replaced with "[FILTERED]" in sensitive data objects.
A list of keys whose values are replaced with "[FILTERED]" in sensitive data objects.
Merge the log context into the Honeybadger payload before sending errors to the reporting API.
Merge the log context into the Honeybadger payload before sending errors to the reporting API.
The path to the projects source code. Evaluated at compile time.
Explicitly override the development environment check. Nil = check for development environment True = always report data False = never report data
Explicitly override the development environment check. Nil = check for development environment True = always report data False = never report data
Should Honeybadger.cr send data to the honeybadger api?
When report_data is unset, default to development? logic.