Skip to content

Commit

Permalink
metrics added in router (NOBUDGET,TOOLATE...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahe5556 committed Aug 13, 2015
1 parent 2066142 commit 35070fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rtbkit/core/router/router.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2101,6 +2101,7 @@ doBidImpl(const BidMessage &message, const std::vector<std::string> &originalMes
slowModePeriodicSpentReached = true;
bidder->sendBidDroppedMessage(agentConfig, agent, auctionInfo.auction);
recordHit("slowMode.droppedBid");
recordHit("accounts.%s.DROPPED", bid.account.toString('.'));
continue;
}
}
Expand Down Expand Up @@ -2196,17 +2197,17 @@ doBidImpl(const BidMessage &message, const std::vector<std::string> &originalMes
case Auction::WinLoss::LOSS:
status = BS_LOSS;
bidder->sendLossMessage(agentConfig, agent, auctionId.toString ());
recordHit("accounts.%s.LocalLoss", bid.account.toString('.'));
recordHit("accounts.%s.LOCAL_LOSS", bid.account.toString('.'));
break;
case Auction::WinLoss::TOOLATE:
status = BS_TOOLATE;
bidder->sendTooLateMessage(agentConfig, agent, auctionInfo.auction);
recordHit("accounts.%s.TooLate", bid.account.toString('.'));
recordHit("accounts.%s.TOOLATE", bid.account.toString('.'));
break;
case Auction::WinLoss::INVALID:
status = BS_INVALID;
bidder->sendBidInvalidMessage(agentConfig, agent, msg, auctionInfo.auction);
recordHit("accounts.%s.Invalid", bid.account.toString('.'));
recordHit("accounts.%s.INVALID", bid.account.toString('.'));
break;
default:
throw ML::Exception("logic error");
Expand Down

0 comments on commit 35070fe

Please sign in to comment.