Skip to content

Commit

Permalink
fix: add a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
polsar88 committed Aug 17, 2024
1 parent 0fcaa79 commit 62455a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/checks/latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (c *LatencyCheck) runCheck() {
val.timeoutOrError++

c.metricsContainer.LatencyCheckErrors.WithLabelValues(c.upstreamConfig.ID, c.upstreamConfig.HTTPURL, metrics.HTTPRequest).Inc()
} else if duration > defaultMaxLatency {
} else if duration > defaultMaxLatency { // TODO(polsar): Get the latency threshold from config.
val.latencyTooHigh++

c.metricsContainer.LatencyCheckHighLatencies.WithLabelValues(c.upstreamConfig.ID, c.upstreamConfig.HTTPURL, metrics.HTTPRequest).Inc()
Expand Down

0 comments on commit 62455a3

Please sign in to comment.