Skip to content

Commit

Permalink
add comment about millisecond usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cds2-stripe committed Dec 15, 2021
1 parent 0ab05ad commit e3f2a9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/smokescreen/smokescreen.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ func logProxy(config *Config, pctx *goproxy.ProxyCtx) {

// start a new set of fields used only in this log message
fields = logrus.Fields{}

// If a lookup takes less than 1ms it will be rounded down to zero. This can separated from
// actual failures where the default zero value will also have the error field set.
fields["dns_lookup_time_ms"] = sctx.lookupTime.Milliseconds()

if pctx.Resp != nil {
Expand Down

0 comments on commit e3f2a9d

Please sign in to comment.