Spring Boot
Code Execution Monitoring for Spring Boot applications
Requirements
Spring Boot 3.x
Installation
Add the package to your application's dependencies list in the pom.xml
file:
Reload application dependencies:
Configure the ingestion key
Add the following configuration to the application.properties
file:
Outgoing HTTP calls
Currently we only support outgoing http monitoring for RestTemplate http client.
To enable http monitoring for RestTemplate you have to manually add RestTemplateMonitoringInterceptor
as an interceptor when creating your RestTemplate bean. Check the example in the snippet below:
Test & Deploy
Run an HTTP request against your application (or navigate it with a browser) to see the first data flowing into the Inspector dashboard.
By default Inspector monitors:
Incoming HTTP requests
Scheduled Tasks
Database Queries
Outgoing HTTP calls
Once verified that everything works and your application is connected, you can deploy the integration into the production environment.
Use the live chat in your dashboard if you have any questions, or schedule a meeting for further support.
Important notes
Applications without Spring Data layer
At the moment the package auto-configure monitoring for JDBC calls. This means that interactions with relational databases are monitored, whether they are done via Spring Data or via low level JDBC API.
If you're using this library and not using Spring Data in your project please add the following line in your application.properties
to disable Spring Boot's auto-configuration attempt of data source beans:
Last updated