-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creat a Fail-To_Bid error #636
Conversation
pbsmetrics/metrics.go
Outdated
@@ -146,6 +146,7 @@ const ( | |||
AdapterErrorBadInput AdapterError = "badinput" | |||
AdapterErrorBadServerResponse AdapterError = "badserverresponse" | |||
AdapterErrorTimeout AdapterError = "timeout" | |||
AdapterErrorFailedToBid AdapterError = "failedtobid" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name seems a bit confusing to me... if you were unfamiliar with the project and saw the metrics, how do you think this would compare with nobid
?
Maybe failedtorequest
would be more accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is what I use elsewhere, Not sure how I got off track here. Thanks
* Initial implementation * Makes naming more consistent
* Initial implementation * Makes naming more consistent
* Initial implementation * Makes naming more consistent
Adapters should either generate one or more http requests to their bidder to get bids, or return errors indicating why they could not bid on the supplied bid request (or both). However this is not enforced. This PR adds a failedToBid error to catch this case, and signal that an adapter is misbehaving in this manner. This should hopefully never happen, but now we will be able to catch and debug if it ever does.