gem
by running:
application.rb
file) like so:
:backend_port
: Backend port used by Metlo:collector_port
: Collector port used to capture traces. Defaults to 8081:encryption_key
: Key used to encrypt sensitive data, such as User session keys:log_level
: The log level Metlo should log at. The debug levels and above correspond to values used by the python logging module. A special trace
level is also present, that provides verbose logging info. Can be
:block_response
: Function that produces a reponse when Metlo is set to block malicious requests. It takes in a param for the env and expects a tuple containing the status code, response headers, and response (as an array of strings).:get_user
: A function that takes in the rack env scope parameter and returns the user for that request as a string. By default, Metlo collects no information about user of a request.:backend_port
: Backend port used by Metlo:collector_port
: Collector port used to capture traces. Defaults to 8081:encryption_key
: Key used to encrypt sensitive data, such as User session keys:log_level
: The log level Metlo should log at. The debug levels and above correspond to values used by the python logging module. A special trace
level is also present, that provides verbose logging info. Can be
:block_response
: Function that produces a reponse when Metlo is set to block malicious requests. It takes in a param for the env and expects a tuple containing the status code, response headers, and response (as an array of strings).:get_user
: A function that takes in the rack env scope parameter and returns the user for that request as a string. By default, Metlo collects no information about user of a request.