Skip to content

http.client.duration vs redirections #3462

Answered by lmolkova
antonfirsov asked this question in Q&A
Discussion options

You must be logged in to vote

I'm pretty sure tracing happens in a HttpHandler and uses option 2.

It happens in the handler right before SocketsHttpHandler and implements option 1 when it comes to retries. For redirects, it depends on user configuration.

Assuming we can and are going to introduce truly per-request metrics from the platform, providing clear http.client.duration that does not depend on user configuration would be great.

The implications of not doing it would be:

  • it's impossible to tell if number of redirects is too big (or if there are any)
  • it's impossible to tell which host/port was actually used and which one of them introduced higher error rate/latency

Option 2 is intended for instrumentation lib…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@antonfirsov
Comment options

@JamesNK
Comment options

Comment options

You must be logged in to vote
3 replies
@JamesNK
Comment options

@antonfirsov
Comment options

@lmolkova
Comment options

Answer selected by antonfirsov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants