JfrRestTemplate  
 
 
An implementation of Spring RestTemplate that generates Flight Recorder events.
<dependency>
  <groupId>com.github.marschall</groupId>
  <artifactId>jfr-resttemplate</artifactId>
  <version>0.2.1</version>
</dependency> 
This project requires Java 11 based on OpenJDK or later.
Overhead
We try to keep overhead to a minimum and the only additional allocations besides the JFR events are URI#toString().
Usage
@Configuration
public class RestConfiguration {
   @Bean
   public RestOperations restOperations() {
     ClientHttpRequestFactory requestFactory = ...;
     RestOperations restOperations = new RestTemplate(requestFactory);
     return new JfrRestOperations(restOperations);
   }
} 
 JarCasting
 JarCasting