Skip to content

Commit

Permalink
- revert 'connect' phase duration
Browse files Browse the repository at this point in the history
Signed-off-by: kgersen <[email protected]>
  • Loading branch information
kgersen committed Mar 16, 2021
1 parent 35d3790 commit 92febc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions prober/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,12 +549,13 @@ func ProbeHTTP(ctx context.Context, target string, module config.Module, registr
continue
}
if trace.tls {
// dnsDone must be set if gotConn was set.
durationGaugeVec.WithLabelValues("connect").Add(trace.connectDone.Sub(trace.dnsDone).Seconds())
durationGaugeVec.WithLabelValues("tls").Add(trace.tlsDone.Sub(trace.tlsStart).Seconds())
} else {
durationGaugeVec.WithLabelValues("connect").Add(trace.gotConn.Sub(trace.dnsDone).Seconds())
}

// actual connection - we could add a new phase between connectDone and gotConn
durationGaugeVec.WithLabelValues("connect").Add(trace.gotConn.Sub(trace.dnsDone).Seconds())

// Continue here if we never got a response from the server.
if trace.responseStart.IsZero() {
continue
Expand Down

0 comments on commit 92febc8

Please sign in to comment.