Implement sample-based APIs on JS for timing distributions
Categories
(Toolkit :: Telemetry, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox133 | --- | fixed |
People
(Reporter: chutten, Assigned: bdk)
References
Details
(Whiteboard: [disco-])
Attachments
(1 file)
At present, timing distribution metrics don't have APIs in JS for recording times that are measured externally.
Our design philosophy with Glean has moved over the years from "Forbid everything but cases where we can assert correctness (e.g. monotonicity of timing)" to "Permit advanced users to scale back protections, trusting them to read the documentation (e.g. accepting raw durations)". This is in-line with that evolution: exposing to advanced users of the JS API some APIs for recording samples.
(( This does not invalidate our previous commentary about the duration API, though. mozJS still lacks a time duration type, so what this bug proposes is specific to sample-based APIs, not duration-based ones. Documentation warning users to keep the unit of their samples in-sync with time_unit
will be deployed. ))
This bug is about implementing accumulate_single_sample and accumulate_samples for Firefox Desktop JS. Don't forget:
Assignee | ||
Updated•10 months ago
|
Assignee | ||
Updated•10 months ago
|
Updated•10 months ago
|
Assignee | ||
Comment 1•10 months ago
|
||
Comment 3•10 months ago
|
||
bugherder |
Description
•