spring-httpserver-timings
spring-httpserver-timings copied to clipboard
Allow using a different annotation such as OpenTracing or NewRelic
Hi. I love this project and would like to use it on a large codebase. The codebase itself uses NewRelic for instrumentation and so adding a new annotation would be tedious.
Any chance you could add support for using custom annotations such as NewRelic's @Trace
annotation or OpenTracing's @Span
annotation?
The main Spring context could have an annotation that would allow you to choose the tracing framework e.g.
@SpringBootApplication
@EnableRequestCorrelation
@EnableServerTiming(using = Trace.class)
public class Application {
@SuppressWarnings("resource")
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}