WICG / turtledove

TURTLEDOVE
https://wicg.github.io/turtledove/
Other
522 stars 226 forks source link

Update real time reporting explainer. #1226

Closed qingxinwu closed 2 months ago

qingxinwu commented 2 months ago

There are 4 main updates we’re making to the explainer:

  1. The real time reporting API surface. (1) combining contributeToRealTimeHistogram() and contributeOnWorkletLatency() APIs into a single API contributeToHistogram(). (2) moving the first parameter (bucket) to the API’s single argument (which is an object), as a required field of the argument object.
  2. Define and support platform contributions, which are not visible in either scoreAd() or generateBid(). Currently 4 platform contributions are supported: bidding/scoring script fetch failures, trusted bidding/scoring signal fetch failures.
  3. Changed format of the report which is sent as a network request body. (1) Changed its content type from JSON to Cbor (2) a single vector of 0/1s, to a map with data version, and separate user contributions and platform contributions to two fields.
  4. Rate limit sending real time reports to 10 reports per reporting origin per page per 20 seconds (per browser), to mitigate a privacy risk.