Closed Bug 1645205 Opened 5 years ago Closed 5 years ago

Implement a metric type similar to Quantity for outside of GeckoView metrics

Categories

(Data Platform and Tools Graveyard :: Glean Metric Types, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1626372

People

(Reporter: sraturi, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0

Expected results:

Trying to collect number of collections Fenix users have. However, the counter metric doesn't work since 0 cannot be reported through the counter. GitHub issue: https://github.com/mozilla-mobile/fenix/issues/9029

Hey sraturi!

Would you kindly edit the first comment and use the provided template (the one that appears as a placeholder when creating a new bug) to fill in the information?

Flags: needinfo?(sraturi)
User Story

As a user, I want to use a metric type that lets me report 0 as a value so I can report the number of collections user has.

What I have already tried

I tried using counter metric type to count number of collections user has on startup. However, it cannot report the number of collections when user has 0 collections. The Quantity metric is not available outside of Geckoview.

Acceptance Criteria,

I can set a value for the number of collections users have even when that value is 0.

Proposal for changing an existing or adding a new Glean metric type

Who is the individual/team requesting this change?

Sachin Raturi, Fenix performance team

Is this about changing an existing metric type or creating a new one?

creating a new metric type.

Can you describe the data that needs to be recorded?

We need to record the total number of collections user have on startup

Can you provide a raw sample of the data that needs to be recorded (this is in the abstract, and not any particular implementation details about its representation in the payload or the database)

number of collections could be any integer starting from 0

What is the business question/use-case that requires the data to be recorded?

What variations of our responsiveness tests do we need to ensure we're testing realistic user flows?

How would the data be consumed?

Improve the UX based on how users use the feature.

Why existing metric types are not enough?

Tried using counter metric type to count the number of collections user has on startup. However, it cannot report the number of collections when the user has 0 collections (error incrementing by 0). The Quantity metric is not available outside of Geckoview.

What is the timeline by which the data needs to be collected?

N/A

Flags: needinfo?(sraturi)
Flags: needinfo?(alessio.placitelli)

Thanks for filing this. While going through triage, I noticed that bug 1626372 is asking exactly the same behaviour. I'm marking this as a duplicate of the other one.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(alessio.placitelli)
Resolution: --- → DUPLICATE
Product: Data Platform and Tools → Data Platform and Tools Graveyard
You need to log in before you can comment on or make changes to this bug.