jodd-http icon indicating copy to clipboard operation
jodd-http copied to clipboard

Add statistics time

Open OnePieceMan opened this issue 3 years ago • 3 comments

Like a browser, it can count the waterfall flow and length of visits.

OnePieceMan avatar Sep 07 '22 02:09 OnePieceMan

That is a very cool idea! We already have a HttpSession object that behaves like a browsers (i.e. keeps session, cookies etc), it should be easy to add something like that!

igr avatar Sep 07 '22 10:09 igr

Trying to define the data to capture

  • request path
  • response status
  • request size
  • response size
  • response time
  • offset time from the session start

igr avatar Sep 07 '22 10:09 igr

Trying to define the data to capture

The sky is the limit 😄

As for the timings, I'd go either with absolute timestamps (from which one can infer the duration, of course) or some kind of ticks for each individual step. Though, maybe splitting by the following actions could be a good idea

  • DNS lookup (if applicable)
  • Connection time for TCP (at least up until 2.0)
  • SSL handshake (if applicable)
  • Sending the request
  • Receiving the response

The data points you mentioned, @igr, look good to me, maybe also the request method.

@OnePieceMan, what do you think?

neroux avatar Dec 09 '23 07:12 neroux