Closed Bug 1317579 Opened 8 years ago Closed 7 years ago

Don't send a sync ping for self-hosters

Categories

(Firefox :: Sync, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Firefox 53
Tracking Status
firefox53 --- fixed

People

(Reporter: markh, Assigned: lina)

Details

Attachments

(1 file)

People self-hosting their sync servers can skew our stats, particularly if they don't upgrade the server components. For example, such users may account for pings that have a zero'd |uid|.

I initially thought we should just record the fact it is a custom config in the ping, but then thought we should just not bother sending a ping at all, which would probably better meet the expectations of those users.

I think just checking Services.prefs.prefHasUserValue("identity.sync.tokenserver.uri") is enough for this purpose - that will also exclude staging etc too, which I think is what we want. One consideration for the implementation is TPS - we probably *do* want to arrange for it to validate the ping it would have sent had it been against prod.
If we check and discard in the `submit` function, that will keep everything (TPS, etc) working.

I think this isn't just important for skewing our stats, I suspect that if you're self hosting sync, there's a decent chance you'd be unhappy with us sending telemetry about it (but maybe I'm wrong?).

Should be very short, will upload patch if I get a chance by the end of the day.
Priority: -- → P1
Assignee: nobody → kit
Comment on attachment 8826704 [details]
Bug 1317579 - Don't send a sync ping for self-hosters.

https://reviewboard.mozilla.org/r/104602/#review105980

Looks great, exactly the right place it needs to be to not break e.g. TPS even when configured to point somewhere strange.
Attachment #8826704 - Flags: review?(tchiovoloni) → review+
Pushed by kcambridge@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/35ae28472a13
Don't send a sync ping for self-hosters. r=tcsc
https://hg.mozilla.org/mozilla-central/rev/35ae28472a13
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: