Atatus provides transparency for API calls, and helps developers to analyze their APIs. As you know, if you are already using APM, you can see the transactions performance and errors with them being grouped by the routes on a per minute basis. With API Analytics you can see each and every request separately along with the request header information, user details, request body, response body etc. Using this you can analyze your backend from there.
You can analyze for instance:
- Which users are having API issues
- How each individual user's performance is
- From which locations you are getting requests from
- Any specific IP which is accessing or causing load on your server
- From which countries you are getting requests
- How the performance is spread across each country
- Which domains are being affected, and their response times
- Retry the requests individually using the custom attributes
- Have custom attributes per request, based on which you can query or group by and see metrics and more.
The above are only a hand full of dimensions you can view. Get started with API Analytics to visualize the full power of understanding what is happening in your backend.
Support for API Analytics is available in Atatus Ruby agent v1.7.0 or higher.
Installation & Setup
Install Atatus Ruby agent.
Please follow the installation steps for Atatus Ruby agent.
Enable analytics feature by setting the below configuration.
App Analytics collects all requests individually with contextual data.
In Rails
Create a file config/atatus.yml and set your configuration in Rails
.
# In config/atatus.yml
license_key: "lic_apm_xxxxxxx"
app_name: "Ruby App"
analytics: true
In Sinatra
Set your configuration to config.ru
file.
# In config.ru
Atatus.start(
license_key: "lic_apm_6e49699e38c8498f9a29a05b1adc0182",
app_name: "Ruby App",
analytics: true
)