[logback-dev] [JIRA] (LOGBACK-1513) [logback-access] Wrong duration reported by LogbackValve with spring-webflux

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Apr 3 11:56:01 CEST 2020


Guillaume DROUET created LOGBACK-1513:
-----------------------------------------

             Summary: [logback-access] Wrong duration reported by LogbackValve with spring-webflux
                 Key: LOGBACK-1513
                 URL: https://jira.qos.ch/browse/LOGBACK-1513
             Project: logback
          Issue Type: Bug
         Environment: Spring Webflux manages request processing through reactive streams Publisher
 so if we want to log the request duration we have to wait for the end of the subscription which writes to the response.

The problem with LogbackValve is when it calculates the elapsed time in the AccessEvent
 just after calling getNext().invoke, which is actually the duration of Publisher's creation and not the time it takes to subscribe to it and write to the HTTP response.

 

 
            Reporter: Guillaume DROUET
            Assignee: Logback dev list






--
This message was sent by Atlassian Jira
(v8.8.0#808000)


More information about the logback-dev mailing list