Skip to content
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

record tmax timeout error in adapter error metric #3104

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

onkarvhanumante
Copy link
Contributor

We have a bidderRequest loop, which goes through each bidder request. Inside this loop, PBS sends a request to the bidder server and handles the bidder's response or any errors that may occur.

Within this loop, we gather all errors related to bidders using errorsToMetric() and then record these errors into AdapterErrors metric using RecordAdapterRequest()

PR makes changes to handle tmax timeout error. This means that if a tmax timeout error occurs then it should be included and recorded in the AdapterErrors metric as well.

We have a bidderRequest loop [1], which goes through each bidder request. Inside this loop, PBS sends a request to the bidder server and handles the bidder's response or any errors that may occur.

Within this loop, we gather all errors related to bidders using errorsToMetric() [2] and then record these errors into AdapterError metric using RecordAdapterRequest()[3]

Commit makes changes to handle tmax timeout error. This means that tmax timeout error occurs, it should be included and recorded in the AdapterError metric as well.

Commit updates errorsToMetric() to also consider tmax timeout error. So that tmax timeout error will also be recorded into AdapterError.

Link:
[1] https://github.com/prebid/prebid-server/blob/2e056bfbc071292361b6c399ed8176ff369babc3/exchange/exchange.go#L675
[2] https://github.com/prebid/prebid-server/blob/2e056bfbc071292361b6c399ed8176ff369babc3/exchange/exchange.go#L719
[3] https://github.com/prebid/prebid-server/blob/2e056bfbc071292361b6c399ed8176ff369babc3/exchange/exchange.go#L687-L689
Copy link
Contributor

@VeronikaSolovei9 VeronikaSolovei9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@bsardo bsardo merged commit db87119 into master Sep 20, 2023
3 checks passed
@SyntaxNode SyntaxNode deleted the tmax/add-tmax-timeout-labels-for-bidders branch October 2, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants