Repository navigation
Add endpoint_wait span in activator - #3881
Conversation
vagababov
left a comment
There was a problem hiding this comment.
Thanks for doing this.
Can we also log the time in the log file?
caa94bd to
df7ef48
Compare
markusthoemmes
left a comment
There was a problem hiding this comment.
Is there a good way to test these spans? I fear that they can get broken/lost too easily if we're not enforcing they're there.
df7ef48 to
919e0e1
Compare
919e0e1 to
80418e3
Compare
|
/hold This depends on #4097 |
80418e3 to
f378c6d
Compare
|
/hold cancel |
| epWaitStart := time.Now() | ||
| epWaitEnd := func() { | ||
| epWaitSpan.End() | ||
| a.logger.Infof("Waiting for endpoint took %v time", time.Since(epWaitStart)) |
There was a problem hiding this comment.
Shouldn't we only log this in the successful case? In the error case we don't know if we even waited for endpoints to appear so this could be confusing in the logs.
There was a problem hiding this comment.
Also: This isn't really only waiting for endpoints but also waiting for capacity to be available in general. Should this rather be capacity_wait?
On a broader scheme: Should we propagate context into Try to be able to distinguish better?
There was a problem hiding this comment.
I agree with the logs + rename. Right now we could propogate ctx in to try but I am hoping to decouple probing from individual requests so that'll end up getting removed anyways.
f378c6d to
dd1367e
Compare
a301826 to
006cd4e
Compare
This span clearly shows time spent waiting for our endpoint to become ready
006cd4e to
4bbc78c
Compare
|
@greghaynes is this ready to go in? |
|
@markusthoemmes Yep I believe so |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: greghaynes, markusthoemmes, vagababov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This span clearly shows time spent waiting for our endpoint to become
ready