armeria: Request time does not take into account connection creation

Reported in https://line-armeria.slack.com/archives/C1NGPBUH2/p1574122806097100

I believe this is a regression after moving Endpoint selection to the begging of the request. We call startRequest only when about to send the request, but not anymore. This is affecting spans, but I think it also affects our totalDuration metric equally.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Realized it may not be a regression and there from the start - startRequest takes a channel so it could only ever be called after connection is complete. I’m a bit confused since I thought we have heard evidence of people debugging DNS resolution slowness using metrics, but I guess they’ve used server latency instead of client latency to find that.

It’ll be quite a refactor to record start timing without a channel 😅