This page describes the available configurations for the Atatus Ruby Agent.

Configurations

You can set following configurations in the Ruby agent. In Rails Create a file config/atatus.yml and set your configuration in Rails.
In Sinatra Set your configuration to config.ru file.

Set app version

If you use an version to identify releases of your app, you can send it to Atatus. It is highly recommended to set service_version. In Rails Create a file config/atatus.yml and set your configuration in Rails.
In Sinatra Set your configuration to config.ru file.

Set analytics

App Analytics collects all requests individually with contextual data. In Rails Create a file config/atatus.yml and set your configuration in Rails.
In Sinatra Set your configuration to config.ru file.

Set environment

If you are tracking multiple environments with a single APM project, then you can set a environment as follows. In Rails Create a file config/atatus.yml and set your configuration in Rails.
In Sinatra Set your configuration to config.ru file.

Enable Capture Body

This capture body option is disabled by default. If you want to see the request body in traces, you can enable this option in startup options. The body will be captured only in follwing content-types: application/x-www-form-urlencoded, text/*, application/json, application/xml. In Rails Create a file config/atatus.yml and set your configuration in Rails.
In Sinatra Set your configuration to config.ru file.

Configure a custom host name

By default, we will fetch the host name using Ruby, but you can override this as follows: In Rails Create a file config/atatus.yml and set your configuration in Rails.
In Sinatra Set your configuration to config.ru file.

Disable agent

Using this option, you can completely disable the agent, including instrumentation and remote config polling. You can set enabled option to false to disable agent. In Rails Create a file config/atatus.yml and set your configuration in Rails.
In Sinatra Set your configuration to config.ru file.

Set log path

By default, the agent does not write its logs to a file. To turn on agent logs, set log_path to the full path of a log file, or set it to - to write logs to standard output. In Rails Add log_path to config/atatus.yml:
In Sinatra Pass log_path to Atatus.start in config.ru:
In either framework, you can set it with an environment variable instead:
Use an absolute path for log_path. A relative path is resolved from the folder your application process starts in, which may not be your project folder. Make sure the user running your application can write to the log file’s folder.