-
Notifications
You must be signed in to change notification settings - Fork 925
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
Send P2A json messages to the P3A endpoint. #12819
Conversation
These are handled with the same reporting software and privacy protections on the server-side, so there's no value to maintaining a separate endpoint for the P2A message type. Instead, send them all to p3a-json.brave.com and sort into the approprate queue on the back end. Resolves brave/brave-browser#20478
@rillian I think there are a few implications here to consider.
|
Hi @porteron. Thanks for the additional traffic estimate. That's not insubstantial!
Earlier we'd discussed segmenting based on the metric name; all P2A reports are prefixed with If you'd rather segment the logs themselves, the client still sets an As with the transition to P3A json, we'd have a period of transition with to make sure the new path was working. |
@rillian If the p2a questions have "P2A." in the metric name then that should be fine. Just curious how much longer our reporting jobs will take with the increase in volume. If the plan is to report p2a with p3a anyways then this makes sense. Just wanted to raise those initial points. |
@porteron Yes, thanks for raising them! Are you ok with the PR otherwise? We should see a slow ramp-up in load over a couple of months as the change migrates from nightly to release, like we did with the json P3A. |
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.
Looks good!
We've decided to keep the endpoints separate for now. |
These are handled with the same reporting software and privacy
protections on the server-side, so there's no value to maintaining
a separate endpoint for the P2A message type. Instead, send them
all to p3a-json.brave.com and sort into the approprate queue
on the back end.
Resolves brave/brave-browser#20478
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Launch browser with a network proxy. Observe P2A messages being sent.
Brave.P2A
prefix in the metric nameX-Brave-P2A
http header set.I'm not sure how to trigger P2A reporting. Maybe something like this would work?
Brave.P2A
metrics are listed underbrave.p3a
in brave://local-state