Closed Bug 1555328 Opened 5 years ago Closed 5 years ago

Persist the "upload enabled" status of Glean so that applications don't have to be as careful about setting it before initialization

Categories

(Data Platform and Tools :: Glean: SDK, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mdroettboom, Unassigned)

Details

(Whiteboard: [telemetry:glean-rs:m?])

Attachments

(1 file)

:gfritsche wrote:

Can we have a follow-up bug on considering to make this setting sticky, so the "should be called at least once prior" requirement falls away? I don't remember exactly where our discussions went on this, but from the embedding products side, this seems like a footgun or "just one more thing to remember") that we might be able to hide away.

(In reply to Michael Droettboom [:mdroettboom] from comment #0)

:gfritsche wrote:

Can we have a follow-up bug on considering to make this setting sticky, so the "should be called at least once prior" requirement falls away? I don't remember exactly where our discussions went on this, but from the embedding products side, this seems like a footgun or "just one more thing to remember") that we might be able to hide away.

Instead of us recording this, what about making the upload enabled a mandatory initialize parameter? Otherwise we'd end up recording something that the product will record itself.

Priority: -- → P3
Whiteboard: [telemetry:mobilesdk:m?] → [telemetry:glean-rs:m?][telemetry:mobilesdk:m?]
Whiteboard: [telemetry:glean-rs:m?][telemetry:mobilesdk:m?] → [telemetry:glean-rs:m5][telemetry:mobilesdk:m?]

Instead of persisting the status, which would still leave the case of starting the application with glean for the first time uncovered, what about requiring the product to tell us the initial state through initialize?

Flags: needinfo?(gfritzsche)
Whiteboard: [telemetry:glean-rs:m5][telemetry:mobilesdk:m?] → [telemetry:glean-rs:m6][telemetry:mobilesdk:m?]

(In reply to Alessio Placitelli [:Dexter] - Out until 01/July from comment #2)

Instead of persisting the status, which would still leave the case of starting the application with glean for the first time uncovered, what about requiring the product to tell us the initial state through initialize?

Ok, how about we run through how an integration could look like in an app, based on how we know behavior is in firefox:

  1. on first app launch/init, we shouldn't send data yet (as we couldn't give the user an opportunity to opt out yet).
  2. after some time, the app can enable upload
  3. after this, there might be some times where disabling/enabling of upload happens through the user changing application settings

From here i assume we need:

  • default to upload disabled - covers 1)
  • we need a Glean SDK function to enable/disable upload - covers 2) & 3)

How does that sound?

We should also probably double-check with mobile app engineers from 1-2 products how that sounds to them. The needs and actual integrations may be different from what we're used to.

Flags: needinfo?(gfritzsche)
Whiteboard: [telemetry:glean-rs:m6][telemetry:mobilesdk:m?] → [telemetry:glean-rs:m6][telemetry:mobilesdk:m8]
Assignee: nobody → mdroettboom
Whiteboard: [telemetry:glean-rs:m6][telemetry:mobilesdk:m8] → [telemetry:glean-rs:m7][telemetry:mobilesdk:m8]

What should be the next step on this? I think the comments in the proposal have been addressed, but I'm not sure how to select a way forward. Send the proposal around to a broader group?

Flags: needinfo?(alessio.placitelli)

(In reply to Michael Droettboom [:mdroettboom] from comment #5)

What should be the next step on this? I think the comments in the proposal have been addressed, but I'm not sure how to select a way forward. Send the proposal around to a broader group?

It might be worth to check in with Sebastian and Jeff Boek about this too, if they have input/opinions. After that, it might be worth to organize a meeting (maybe they can join, if they wanted?) to focus on this and make a decision!

Flags: needinfo?(alessio.placitelli)
Whiteboard: [telemetry:glean-rs:m7][telemetry:mobilesdk:m8] → [telemetry:glean-rs:m7]

Moving this back to incoming - I think we need a re-triage of how necessary it is...

Whiteboard: [telemetry:glean-rs:m7] → [telemetry:glean-rs:m?]
Assignee: mdroettboom → nobody

The application would still need to persist the state of this. So we'd end up with two states: one from Glean, one from the application. This would lead to some grey areas when it comes to decide who's right :)

Since the problem (from comment 0) is really requiring setUploadEnabled to be called before init, I filed bug 1591976 to change the initialize method.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: