Skip to content

sercasti/spring-servertimings-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample project using the HTTP Server Timings library

Installation

  • add the dependency as done in this example at pom.xml:
        <dependency>
            <groupId>io.github.sercasti</groupId>
            <artifactId>spring-httpserver-timings</artifactId>
            <version>0.0.8</version>
        </dependency>
    @Bean
    protected Tracing tracing() {
        return TracingConfig.createTracing();
    }

    @Bean
    protected TracingFilter tracingFilter() {
        return new TracingFilter();
    }
    
    @Bean
    protected TracingInterceptor tracingInterceptor() {
        return new TracingInterceptor(tracing());
    }

Instructions

Test it

  • Start this project with "mvn spring-boot:run",
  • open localhost:8080
  • check your network console on chrome, find the localhost request, open it
  • there's a "timing" tab

About

Sample project to explain how to use the https://github.com/sercasti/spring-httpserver-timings library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages