Skip to content

Commit

Permalink
Fixed a bug in the adapter metrics. (prebid#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbemiller authored Jun 28, 2018
1 parent fc6faa6 commit be0fc04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exchange/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ func (e *exchange) getAllBids(ctx context.Context, cleanRequests map[openrtb_ext
}
brw := new(bidResponseWrapper)
brw.bidder = aName
// Defer basic metrics to insure we capture them at the
defer e.me.RecordAdapterRequest(*bidlabels)
// Defer basic metrics to insure we capture them after all the values have been set
defer func() {
e.me.RecordAdapterRequest(*bidlabels)
}()
start := time.Now()

adjustmentFactor := 1.0
Expand Down

0 comments on commit be0fc04

Please sign in to comment.