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 Java agent v2.0.1 or higher.
Installation & Setup
Install Atatus Java agent.
Please follow the installation steps for Atatus Java agent.
Enable analytics feature by setting the below configuration.
App Analytics collects all requests individually with contextual data.
java -javaagent:/path/to/atatus-java-agent.jar \
-Datatus.license_key="APM_LIC_KEY" \
-Datatus.app_name="YOUR_APP_NAME" \
-Datatus.analytics=true \
-Datatus.capture_body=all \
-jar my-java-application.jar
Example:
java -javaagent:/opt/atatus/atatus-java-agent.jar \
-Datatus.license_key="lic_apm_1e8c9f02ad423f8dfecb95f6fc15fe13" \
-Datatus.app_name="Java API Server" \
-Datatus.analytics=true \
-Datatus.capture_body=all \
-jar api-server.jar
3. Restart your Java application to view your analytics performance data within minutes.