remove rollbar and add move to Elastic APM
-all settings to setup log forwarding must be configurable under the admin menu ie token and url
Install the APM agent
Add the agent to your Gemfile.
Copy snippet
gem 'elastic-apm'
Step 5Configure the agent
APM is automatically started when your app boots. Configure the agent, by creating the config file config/elastic_apm.yml
Copy snippet
config/elastic_apm.yml:
Set service name - allowed characters: a-z, A-Z, 0-9, -, _ and space
Defaults to the name of your Rails app
service_name: 'my-service'
Use if APM Server requires a token
secret_token: ''
See the documentation for configuration options and advanced usage.
remove rollbar and add move to Elastic APM
-all settings to setup log forwarding must be configurable under the admin menu ie token and url
Install the APM agent
Add the agent to your Gemfile.
Copy snippet
gem 'elastic-apm'
Step 5Configure the agent
APM is automatically started when your app boots. Configure the agent, by creating the config file config/elastic_apm.yml
Copy snippet
config/elastic_apm.yml:
Set service name - allowed characters: a-z, A-Z, 0-9, -, _ and space
Defaults to the name of your Rails app
service_name: 'my-service'
Use if APM Server requires a token
secret_token: ''
Set custom APM Server URL (default: http://localhost:8200)
server_url: 'http://localhost:8200'
See the documentation for configuration options and advanced usage.