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

AdsCert signer metrics #2351

Merged
merged 1 commit into from
Aug 18, 2022
Merged

AdsCert signer metrics #2351

merged 1 commit into from
Aug 18, 2022

Conversation

VeronikaSolovei9
Copy link
Contributor

@VeronikaSolovei9 VeronikaSolovei9 commented Aug 12, 2022

New metrics are added to track AdsCert signing:
RecordAdsCertReq - record requests with AdsCert header, tracks number of successful and failed requests.
RecordAdsCertSignTime - time to sign AdsCert request

Local test with Prometheus passed, all metrics are correctly displayed in Prometheus data

signatureMessage, err := adsCertSigner.Sign(reqData[i].Uri, reqData[i].Body)
bidder.me.RecordAdsCertSignTime(time.Since(startSignRequestTime))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we expect that the time taken to generate a signature to be significant to warrant tracking as a metric?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When we enable this feature it can help to show if this feature can be a potential bottleneck in request handling. It can be especially valuable when PBS uses remote signatory service.
@SyntaxNode please confirm

Copy link
Collaborator

Choose a reason for hiding this comment

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

Only question in my mind at this point is should it always be active, or should we have a config option to turn at least the timing off? The success/failure metric should only take 2 datapoints per time step, but the timing will eat up ~20 datapoints per time step.

@bsardo bsardo merged commit 9ba0710 into master Aug 18, 2022
@VeronikaSolovei9 VeronikaSolovei9 deleted the ads_cert_metrics branch August 29, 2022 22:26
pm-aadit-patil pushed a commit to PubMatic-OpenWrap/prebid-server that referenced this pull request Sep 22, 2022
pm-aadit-patil pushed a commit to PubMatic-OpenWrap/prebid-server that referenced this pull request Sep 22, 2022
pm-aadit-patil pushed a commit to PubMatic-OpenWrap/prebid-server that referenced this pull request Sep 22, 2022
jorgeluisrocha pushed a commit to jwplayer/prebid-server that referenced this pull request Sep 28, 2022
shunj-nb pushed a commit to ParticleMedia/prebid-server that referenced this pull request Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants