Closed Bug 1694496 Opened 4 years ago Closed 3 years ago

Implement the "rate" metric type in FOG

Categories

(Toolkit :: Telemetry, task, P1)

task

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: chutten, Assigned: chutten)

References

Details

(Whiteboard: [telemetry:fog:m?])

Attachments

(7 files)

Should just have to follow the steps in the docs for adding a new metric type to FOG. If not, updating the docs is now part of this bug.

Boils down to:

  • Generate RateMetric, DenominatorMetric, and NumeratorMetric instances in Rust, C++, and JS templates.
  • Implement those three types in those three languages
  • All of these metrics are IPC-supporting, so be sure to add support
  • Document the C++ and JS APIs in The Book
  • Tests, tests, tests
Blocks: 1694715
Assignee: nobody → chutten
Status: NEW → ASSIGNED
Priority: P3 → P1

Depends on D119784

Depends on D119785

Depends on D119786

Depends on D119787

Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9591dcd4369d Update 'add a new metric type' docs r=janerik https://hg.mozilla.org/integration/autoland/rev/36421c124795 Add 'rate' metric type to FOG (Rust) r=janerik https://hg.mozilla.org/integration/autoland/rev/887eaee3ab5c MLA FFI for `rate` metric type r=janerik https://hg.mozilla.org/integration/autoland/rev/9ccad5fe13e7 FOG Rate metric type C++ and JS r=janerik https://hg.mozilla.org/integration/autoland/rev/86dc6a0fd554 GIFFT for FOG rate metric r=janerik

Without these annotations the literals will be assumed to be int so as soon
as there's a literal that cannot be represented as such it'll warn.
And CI builds with warnings as errors.

metric_entry_t is uint64_t which is unsigned long long int which is ull
category_entry_t is uint32_t which is unsigned long int which is ul

Depends on D119788

Flags: needinfo?(chutten)
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/900dae58363c Update 'add a new metric type' docs r=janerik https://hg.mozilla.org/integration/autoland/rev/5f7e82456e24 Add 'rate' metric type to FOG (Rust) r=janerik https://hg.mozilla.org/integration/autoland/rev/15b51f5e1e48 MLA FFI for `rate` metric type r=janerik https://hg.mozilla.org/integration/autoland/rev/17ecd7307d1e FOG Rate metric type C++ and JS r=janerik https://hg.mozilla.org/integration/autoland/rev/aee57341a14a GIFFT for FOG rate metric r=janerik https://hg.mozilla.org/integration/autoland/rev/628fd187bba9 Annotate FOG JS PHF entries for their widths r=janerik
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: