Closed Bug 1508948 Opened 6 years ago Closed 6 years ago

Implement the "timespan" metric type specific API in glean

Categories

(Toolkit :: Telemetry, defect, P1)

defect
Points:
3

Tracking

()

RESOLVED FIXED
Tracking Status
firefox65 --- affected

People

(Reporter: Dexter, Assigned: Dexter)

References

Details

(Whiteboard: [telemetry:mobilesdk:m3])

Attachments

(1 file)

This bug is about implementing the "timespan" metric type in glean. From the SDK spec [1]: > Timespan > Can record one timespan measurement. > > Each time a timespan is measured, it is added to this value. This value is zero'd every time it is sent with a ping. Therefore, it is possible to use this to measure the total time spent in e.g. a particular function or view, even if that function was called multiple times. > > Additional properties: > time_unit: (string, required) Specifies the unit that results will be stored and displayed in. If not provided, it defaults to milliseconds. Timespans are sent to the backend as integers, so unit also implies the maximum resolution at which timespans are recorded. Accepted values are: "nanosecond", "microsecond", "millisecond", "second", "minute", "hours", "day". > > Examples: > Record in ms how long it took to load settings.sqlite from disk. > > Errors: > invalid_value: If the timer is started before being ended, this is considered an error and reported through the error-reporting mechanism.
Blocks: 1491345, 1497894
Summary: Implement the "timespan" metric type in glean → Implement the "timespan" metric type specific API in glean
Whiteboard: [telemetry:mobilesdk:m3]
Assignee: nobody → alessio.placitelli
Points: --- → 3
Priority: -- → P1
Depends on: 1508949
Depends on: 1508950
No longer depends on: 1508950
Blocks: 1508952
No longer blocks: 1508952
Assignee: alessio.placitelli → tlong
Assignee: tlong → alessio.placitelli
Attached file GitHub Pull Request

The PR was reviewed and merged, finally closing this :)

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

Attachment

General

Created:
Updated:
Size: