tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

metrics.yaml (28277B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 # Adding a new metric? We have docs for that!
      6 # https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html
      7 
      8 ---
      9 $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
     10 $tags:
     11  - 'Core :: Audio/Video'
     12 
     13 gmp:
     14  update_xml_fetch_result:
     15    type: labeled_counter
     16    labels:
     17      - cert_pin_success
     18      - cert_pin_net_request_error
     19      - cert_pin_net_timeout
     20      - cert_pin_abort
     21      - cert_pin_missing_data
     22      - cert_pin_failed
     23      - cert_pin_invalid
     24      - cert_pin_xml_parse_error
     25      - cert_pin_unknown_error
     26      - content_sig_success
     27      - content_sig_net_request_error
     28      - content_sig_net_timeout
     29      - content_sig_abort
     30      - content_sig_missing_data
     31      - content_sig_failed
     32      - content_sig_invalid
     33      - content_sig_xml_parse_error
     34      - content_sig_unknown_error
     35    description: >
     36      The result of Gecko fetching an update.xml from Balrog.
     37      This captures 3 different data points: success or failure of the request,
     38      if cert pinning or content signatures were used to verify the result, and
     39      the reason for failure, if the request failed.
     40    metadata:
     41      tags:
     42        - 'Core :: Audio/Video: GMP'
     43    bugs:
     44      - https://bugzilla.mozilla.org/show_bug.cgi?id=1739664
     45    data_reviews:
     46      - https://bugzilla.mozilla.org/show_bug.cgi?id=1739664
     47    data_sensitivity:
     48      - technical
     49    notification_emails:
     50      - media-alerts@mozilla.com
     51    expires: never
     52 
     53 media.audio:
     54  init_failure:
     55    type: labeled_counter
     56    labels:
     57      - first
     58      - other
     59    description: >
     60      Failure occurs when initializing the audio stream.
     61      (Migrated from the geckoview metric of the same name).
     62    bugs:
     63      - https://bugzilla.mozilla.org/show_bug.cgi?id=1671714
     64      - https://bugzilla.mozilla.org/show_bug.cgi?id=1879192
     65    data_reviews:
     66      - https://bugzilla.mozilla.org/show_bug.cgi?id=1671714#c10
     67    notification_emails:
     68      - media-alerts@mozilla.com
     69    expires: never
     70 
     71  backend:
     72    type: labeled_counter
     73    labels:
     74      - unknown
     75      - audiounit
     76      - audiounit-rust
     77      - aaudio
     78      - opensl
     79      - wasapi
     80      - winmm
     81      - alsa
     82      - jack
     83      - oss
     84      - pulse
     85      - pulse-rust
     86      - sndio
     87      - sunaudio
     88    description: >
     89      The operating system audio backend
     90      (Migrated from the geckoview metric of the same name).
     91    bugs:
     92      - https://bugzilla.mozilla.org/show_bug.cgi?id=1671714
     93      - https://bugzilla.mozilla.org/show_bug.cgi?id=1879192
     94    data_reviews:
     95      - https://bugzilla.mozilla.org/show_bug.cgi?id=1671714#c10
     96    notification_emails:
     97      - media-alerts@mozilla.com
     98    expires: never
     99 
    100 media.playback:
    101  first_frame_loaded:
    102    type: event
    103    description:
    104      The time that the media pipeline takes to load the first video frame.
    105    metadata:
    106      tags:
    107        - 'Core :: Audio/Video: Playback'
    108    bugs:
    109      - https://bugzilla.mozilla.org/show_bug.cgi?id=1882205
    110    data_reviews:
    111      - https://bugzilla.mozilla.org/show_bug.cgi?id=1882205
    112    data_sensitivity:
    113      - technical
    114    notification_emails:
    115      - media-alerts@mozilla.com
    116    extra_keys:
    117      first_frame_loaded_time:
    118        description:
    119          How long (in milliseconds) does the our media pipeline take to load
    120          the first video frame from "the creation of MDSM" to "the first frame
    121          loaded".
    122        type: quantity
    123      metadata_loaded_time:
    124        description:
    125          How long (in milliseconds) does the our media pipeline take to load
    126          the metadata, which happens before finishing loading the first frame.
    127        type: quantity
    128      total_waiting_data_time:
    129        description:
    130          How long (in milliseconds) does the our media pipeline has been in a
    131          state of waiting video data due to lacking of data before the first
    132          frame is loaded.
    133        type: quantity
    134      buffering_time:
    135        description:
    136          How long (in milliseconds) does the our media pipeline has been spent
    137          on the buffering state before the first frame is loaded.
    138        type: quantity
    139      playback_type:
    140        description:
    141          The type of the playback. The value could be one of following
    142          (1) Non-MSE playback
    143          (2) MSE playback
    144          (3) EME playback
    145          // Following are Windows-only
    146          (4) Non-MSE media-engine playback
    147          (5) MSE media-engine playback
    148          (6) EME media-engine playback
    149        type: string
    150      video_codec:
    151        description: The video codec used for playback
    152        type: string
    153      resolution:
    154        description: The video resolution used for playback
    155        type: string
    156      key_system:
    157        description: The key system used for the EME playback if exists
    158        type: string
    159      hls_decoder:
    160        description:
    161          This value will only be set on Android. It tells that whether playback
    162          is performed by the HLS decoder, which utilizes the external player to
    163          play video.
    164        type: boolean
    165      is_hardware_decoding:
    166        description: True if the first frame is decoded by a hardware decoder.
    167        type: boolean
    168      decoder_name:
    169        description: The name of video decoder used for playback.
    170        type: string
    171      is_hdr:
    172        description: True if the playback is from a HDR video content.
    173        type: boolean
    174    expires: never
    175 
    176  device_hardware_decoder_support:
    177    type: labeled_boolean
    178    description:
    179      The results of hardware decoder support for different video codecs. True
    180      means that codec can be decoded by hardware on user's device.
    181    metadata:
    182      tags:
    183        - 'Core :: Audio/Video: Playback'
    184    bugs:
    185      - https://bugzilla.mozilla.org/show_bug.cgi?id=1892516
    186    data_reviews:
    187      - https://bugzilla.mozilla.org/show_bug.cgi?id=1892516#c4
    188    data_sensitivity:
    189      - technical
    190    notification_emails:
    191      - media-alerts@mozilla.com
    192    expires: never
    193    labels:
    194      - h264
    195      - vp8
    196      - vp9
    197      - av1
    198      - hevc
    199    telemetry_mirror: MEDIA_DEVICE_HARDWARE_DECODING_SUPPORT
    200  not_supported_video_per_mime_type:
    201    type: labeled_counter
    202    description:
    203      Count the amount of times where video playback is failed to start due to the mime type is not supported by Firefox. The result is accumulated per mime type, eg. video/hevc.
    204    bugs:
    205      - https://bugzilla.mozilla.org/show_bug.cgi?id=1893523
    206    data_reviews:
    207      - https://bugzilla.mozilla.org/show_bug.cgi?id=1893523#c9
    208    notification_emails:
    209      - media-alerts@mozilla.com
    210    expires: never
    211 
    212  decode_error:
    213    type: event
    214    description: >
    215      Record the decode error details.
    216    metadata:
    217      tags:
    218        - 'Core :: Audio/Video: Playback'
    219    bugs:
    220      - https://bugzilla.mozilla.org/show_bug.cgi?id=1929335
    221    data_reviews:
    222      - https://bugzilla.mozilla.org/show_bug.cgi?id=1929335
    223    data_sensitivity:
    224      - technical
    225    notification_emails:
    226      - media-alerts@mozilla.com
    227    extra_keys:
    228      mime_type:
    229        description: The mime type of the media track when the error occurred.
    230        type: string
    231      error_name:
    232        description: The name of the error.
    233        type: string
    234      key_system:
    235        description: >
    236          The value indicates the key system in use when the error occurred. It
    237          will be null if the error is related to non-EME playback.
    238        type : string
    239      decoder_name:
    240        description: The name of the decoder when the error occurred.
    241        type: string
    242      is_hardware_accelerated:
    243        description: True if the decoder used when the error occurred is a hardware decoder.
    244        type: boolean
    245    expires: never
    246 
    247 media.recorder:
    248  mime_type_query:
    249    type: labeled_counter
    250    description: >
    251      Count the amount of times where a mime type is queried via
    252      MediaRecorder.isTypeSupported() or passed to the MediaRecorder constructor.
    253      The result is accumulated per mime type.
    254    labels:
    255      - mp4_av1
    256      - mp4_h264
    257      - mp4_h265
    258      - mp4_vp9
    259      - mp4_aac
    260      - mp4_flac
    261      - mp4_opus
    262      - mp4_unspecified # no codec specified (codecs string is empty but valid)
    263      - mp4_others # invalid/unrecognized codec
    264      - webm_av1
    265      - webm_vp8
    266      - webm_vp9
    267      - webm_opus
    268      - webm_vorbis
    269      - webm_unspecified # no codec specified (codecs string is empty but valid)
    270      - webm_others # invalid codec
    271      - mkv_av1
    272      - mkv_h264
    273      - mkv_h265
    274      - mkv_vp8
    275      - mkv_vp9
    276      - mkv_aac
    277      - mkv_flac
    278      - mkv_opus
    279      - mkv_pcm
    280      - mkv_vorbis
    281      - mkv_unspecified # no codec specified (codecs string is empty but valid)
    282      - mkv_others # invalid/unrecognized codec
    283      - ogg_vp8
    284      - ogg_vp9
    285      - ogg_flac
    286      - ogg_opus
    287      - ogg_vorbis
    288      - ogg_unspecified # no codec specified (codecs string is empty but valid)
    289      - ogg_others # invalid/unrecognized codec
    290      - empty # The whole MIME string is empty but valid
    291      - others # invalid container
    292    bugs:
    293      - https://bugzilla.mozilla.org/show_bug.cgi?id=1986763
    294    data_reviews:
    295      - https://bugzilla.mozilla.org/show_bug.cgi?id=1986763
    296    notification_emails:
    297      - media-alerts@mozilla.com
    298    expires: never
    299 
    300 media:
    301  element_in_page_count:
    302    type: counter
    303    description: >
    304      The number of times a document hierarchy contained at least one
    305      HTMLMediaElement. In addition, the telemetry probe
    306      'MIXED_CONTENT_UNBLOCK_COUNTER' records the total number of loaded
    307      top level content documents, which can help us calculate the result
    308      of the percentage of documents using media.
    309      This metric was generated to correspond to the Legacy Telemetry
    310      scalar media.element_in_page_count.
    311    bugs:
    312      - https://bugzil.la/1476456
    313      - https://bugzil.la/1499803
    314      - https://bugzil.la/1570634
    315      - https://bugzil.la/1652108
    316    data_reviews:
    317      - https://bugzil.la/1476456
    318      - https://bugzil.la/1499803
    319      - https://bugzil.la/1570634
    320      - https://bugzil.la/1652108
    321    notification_emails:
    322      - media-alerts@mozilla.com
    323    expires: never
    324    telemetry_mirror: MEDIA_ELEMENT_IN_PAGE_COUNT
    325 
    326  mkv_content_count:
    327    type: counter
    328    description: >
    329      The number of times MKV content is detected as a source for media playback.
    330      This metric does not determine whether the MKV file is valid; it is simply
    331      a count based on the sniffed MIME type.
    332    bugs:
    333      - https://bugzil.la/1985336
    334    data_reviews:
    335      - https://bugzil.la/1985336
    336    notification_emails:
    337      - media-alerts@mozilla.com
    338    expires: 150
    339 
    340  mkv_codec_type:
    341    type: labeled_counter
    342    description: >
    343      Count the amount of the real world codec usage inside Matroska.
    344    labels:
    345      - VideoAv1
    346      - VideoAvc
    347      - VideoHevc
    348      - VideoVp8
    349      - VideoVp9
    350      - AudioAac
    351      - AudioMp3
    352      - AudioOpus
    353      - AudioVorbis
    354      - AudioFlac
    355      - AudioPcm
    356      - NoCodecSpecified
    357    bugs:
    358      - https://bugzil.la/1986058
    359    data_reviews:
    360      - https://bugzil.la/1986058
    361    notification_emails:
    362      - media-alerts@mozilla.com
    363    expires: 150
    364 
    365  video_hardware_decoding_support:
    366    type: labeled_boolean
    367    description: >
    368      Record whether hardware decoding is supported for the specific video
    369      codec. The key is the type of video codec, eg. video/vp9.
    370      This metric was generated to correspond to the Legacy Telemetry
    371      scalar media.video_hardware_decoding_support.
    372    metadata:
    373      permit_non_commutative_operations_over_ipc: true
    374    bugs:
    375      - https://bugzil.la/1733722
    376      - https://bugzil.la/1754657
    377      - https://bugzil.la/1811157
    378    data_reviews:
    379      - https://bugzil.la/1733722
    380      - https://bugzil.la/1754657
    381      - https://bugzil.la/1811157
    382    notification_emails:
    383      - media-alerts@mozilla.com
    384    expires: never
    385    telemetry_mirror: MEDIA_VIDEO_HARDWARE_DECODING_SUPPORT
    386 
    387  video_hd_hardware_decoding_support:
    388    type: labeled_boolean
    389    description: >
    390      Record whether hardware decoding is supported for the specific video
    391      codec, this only records video in HD (1280*720) or higher resultion.
    392      The key is the type of video codec, eg. video/vp9.
    393      This metric was generated to correspond to the Legacy Telemetry
    394      scalar media.video_hd_hardware_decoding_support.
    395    metadata:
    396      permit_non_commutative_operations_over_ipc: true
    397    bugs:
    398      - https://bugzil.la/1741286
    399      - https://bugzil.la/1754657
    400      - https://bugzil.la/1811157
    401    data_reviews:
    402      - https://bugzil.la/1741286
    403      - https://bugzil.la/1754657
    404      - https://bugzil.la/1811157
    405    notification_emails:
    406      - media-alerts@mozilla.com
    407    expires: never
    408    telemetry_mirror: MEDIA_VIDEO_HD_HARDWARE_DECODING_SUPPORT
    409 
    410  error:
    411    type: event
    412    description: >
    413      Record the error details happened on a media element.
    414    metadata:
    415      tags:
    416        - 'Core :: Audio/Video: Playback'
    417    bugs:
    418      - https://bugzilla.mozilla.org/show_bug.cgi?id=1929335
    419    data_reviews:
    420      - https://bugzilla.mozilla.org/show_bug.cgi?id=1929335
    421    data_sensitivity:
    422      - technical
    423    notification_emails:
    424      - media-alerts@mozilla.com
    425    extra_keys:
    426      error_type:
    427        description: The error type defined in MediaError.webidl.
    428        type: string
    429      error_name:
    430        description: The name of the internal error.
    431        type: string
    432      key_system:
    433        description: >
    434          The value indicates the key system in use when the error occurred. It
    435          will be null if the error is related to non-EME playback.
    436        type : string
    437    expires: never
    438 
    439  video_play_time:
    440    type: timing_distribution
    441    description: >
    442      Total time spent playing video in milliseconds.
    443 
    444      This metric was generated to correspond to the Legacy Telemetry
    445      exponential histogram VIDEO_PLAY_TIME_MS.
    446    time_unit: millisecond
    447    bugs:
    448      - https://bugzilla.mozilla.org/show_bug.cgi?id=1261955
    449      - https://bugzilla.mozilla.org/show_bug.cgi?id=1127646
    450      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    451      - https://bugzilla.mozilla.org/show_bug.cgi?id=1567604
    452      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    453    data_reviews:
    454      - https://bugzilla.mozilla.org/show_bug.cgi?id=1261955
    455      - https://bugzilla.mozilla.org/show_bug.cgi?id=1127646
    456      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    457      - https://bugzilla.mozilla.org/show_bug.cgi?id=1567604
    458      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    459    notification_emails:
    460      - media-alerts@mozilla.com
    461    expires: never
    462    telemetry_mirror: VIDEO_PLAY_TIME_MS
    463 
    464  media_play_time:
    465    type: labeled_timing_distribution
    466    description: >
    467      Total time spent playing media in milliseconds, keyed by its content
    468      (Audio and video, audio only, video only, audio and video but audio
    469      inaudible, audio and video but audio muted).
    470 
    471      This metric was generated to correspond to the Legacy Telemetry
    472      exponential histogram MEDIA_PLAY_TIME_MS.
    473    time_unit: millisecond
    474    bugs:
    475      - https://bugzilla.mozilla.org/show_bug.cgi?id=1678373
    476    data_reviews:
    477      - https://bugzilla.mozilla.org/show_bug.cgi?id=1678373
    478    notification_emails:
    479      - media-alerts@mozilla.com
    480    expires: never
    481    telemetry_mirror: MEDIA_PLAY_TIME_MS
    482 
    483  audible_play_time_percent:
    484    type: labeled_custom_distribution
    485    description: >
    486      Percentage of time spent playing media with an audible audio track,
    487      regardless of the volume. Keyed by audio-only or video presence.
    488 
    489      This metric was generated to correspond to the Legacy Telemetry linear
    490      histogram AUDIBLE_PLAY_TIME_PERCENT.
    491    range_min: 1
    492    range_max: 100
    493    bucket_count: 50
    494    histogram_type: linear
    495    bugs:
    496      - https://bugzilla.mozilla.org/show_bug.cgi?id=1678373
    497    data_reviews:
    498      - https://bugzilla.mozilla.org/show_bug.cgi?id=1678373
    499    notification_emails:
    500      - media-alerts@mozilla.com
    501    expires: never
    502    telemetry_mirror: AUDIBLE_PLAY_TIME_PERCENT
    503 
    504  muted_play_time_percent:
    505    type: labeled_custom_distribution
    506    description: >
    507      Percentage of time spent playing media that has an audio track, with the
    508      audio muted. Keyed by audio-only or video presence.
    509 
    510      This metric was generated to correspond to the Legacy Telemetry linear
    511      histogram MUTED_PLAY_TIME_PERCENT.
    512    range_min: 1
    513    range_max: 100
    514    bucket_count: 50
    515    histogram_type: linear
    516    bugs:
    517      - https://bugzilla.mozilla.org/show_bug.cgi?id=1678373
    518    data_reviews:
    519      - https://bugzilla.mozilla.org/show_bug.cgi?id=1678373
    520    notification_emails:
    521      - media-alerts@mozilla.com
    522    expires: never
    523    telemetry_mirror: MUTED_PLAY_TIME_PERCENT
    524 
    525  video_visible_play_time:
    526    type: labeled_timing_distribution
    527    description: >
    528      Total time spent playing visible video in milliseconds.
    529 
    530      This metric was generated to correspond to the Legacy Telemetry
    531      exponential histogram VIDEO_VISIBLE_PLAY_TIME_MS.
    532    time_unit: millisecond
    533    bugs:
    534      - https://bugzilla.mozilla.org/show_bug.cgi?id=1723799
    535    data_reviews:
    536      - https://bugzilla.mozilla.org/show_bug.cgi?id=1723799
    537    notification_emails:
    538      - media-alerts@mozilla.com
    539    expires: never
    540    telemetry_mirror: VIDEO_VISIBLE_PLAY_TIME_MS
    541 
    542  video_hidden_play_time:
    543    type: timing_distribution
    544    description: >
    545      Total time spent playing video while element is hidden, in milliseconds.
    546 
    547      This metric was generated to correspond to the Legacy Telemetry
    548      exponential histogram VIDEO_HIDDEN_PLAY_TIME_MS.
    549    time_unit: millisecond
    550    bugs:
    551      - https://bugzilla.mozilla.org/show_bug.cgi?id=1285419
    552      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    553      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    554    data_reviews:
    555      - https://bugzilla.mozilla.org/show_bug.cgi?id=1285419
    556      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    557      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    558    notification_emails:
    559      - media-alerts@mozilla.com
    560    expires: never
    561    telemetry_mirror: VIDEO_HIDDEN_PLAY_TIME_MS
    562 
    563  video_hidden_play_time_percentage:
    564    type: labeled_custom_distribution
    565    description: >
    566      Percentage of total time spent playing video while element is hidden.
    567      Keyed by audio presence and by height ranges (boundaries: 240. 480, 576,
    568      720, 1080, 2160), e.g.: 'V,0<h<=240', 'AV,h>2160'; and 'All' will
    569      accumulate all percentages. This is reported whenever the decoder stops.
    570      (eg. pausing media, encountering an error, changing to a new resource,
    571      page goes to the bf-cached or page gets discarded)
    572 
    573      This metric was generated to correspond to the Legacy Telemetry linear
    574      histogram VIDEO_HIDDEN_PLAY_TIME_PERCENTAGE.
    575    range_min: 1
    576    range_max: 100
    577    bucket_count: 50
    578    histogram_type: linear
    579    bugs:
    580      - https://bugzilla.mozilla.org/show_bug.cgi?id=1287987
    581      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    582      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    583    data_reviews:
    584      - https://bugzilla.mozilla.org/show_bug.cgi?id=1287987
    585      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    586      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    587    notification_emails:
    588      - media-alerts@mozilla.com
    589    expires: never
    590    telemetry_mirror: VIDEO_HIDDEN_PLAY_TIME_PERCENTAGE
    591 
    592  video_hdr_play_time:
    593    type: timing_distribution
    594    description: >
    595      Total time spent playing HDR video in milliseconds.
    596 
    597      This metric was generated to correspond to the Legacy Telemetry
    598      exponential histogram VIDEO_HDR_PLAY_TIME_MS.
    599    time_unit: millisecond
    600    bugs:
    601      - https://bugzilla.mozilla.org/show_bug.cgi?id=1777264
    602    data_reviews:
    603      - https://bugzilla.mozilla.org/show_bug.cgi?id=1777264
    604    notification_emails:
    605      - media-alerts@mozilla.com
    606      - bwerth@mozilla.com
    607    expires: never
    608    telemetry_mirror: VIDEO_HDR_PLAY_TIME_MS
    609 
    610  video_encrypted_play_time:
    611    type: timing_distribution
    612    description: >
    613      Total time spent playing encrypted video in milliseconds.
    614 
    615      This metric was generated to correspond to the Legacy Telemetry
    616      exponential histogram VIDEO_ENCRYPTED_PLAY_TIME_MS.
    617    time_unit: millisecond
    618    bugs:
    619      - https://bugzilla.mozilla.org/show_bug.cgi?id=1662212
    620      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    621    data_reviews:
    622      - https://bugzilla.mozilla.org/show_bug.cgi?id=1662212
    623      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    624    notification_emails:
    625      - media-alerts@mozilla.com
    626    expires: never
    627    telemetry_mirror: VIDEO_ENCRYPTED_PLAY_TIME_MS
    628 
    629  video_clearkey_play_time:
    630    type: timing_distribution
    631    description: >
    632      Total time spent playing Clearkey encrypted video in milliseconds.
    633 
    634      This metric was generated to correspond to the Legacy Telemetry
    635      exponential histogram VIDEO_CLEARKEY_PLAY_TIME_MS.
    636    time_unit: millisecond
    637    bugs:
    638      - https://bugzilla.mozilla.org/show_bug.cgi?id=1662212
    639      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    640    data_reviews:
    641      - https://bugzilla.mozilla.org/show_bug.cgi?id=1662212
    642      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    643    notification_emails:
    644      - media-alerts@mozilla.com
    645    expires: never
    646    telemetry_mirror: VIDEO_CLEARKEY_PLAY_TIME_MS
    647 
    648  video_widevine_play_time:
    649    type: timing_distribution
    650    description: >
    651      Total time spent playing Widevine encrypted video in milliseconds.
    652 
    653      This metric was generated to correspond to the Legacy Telemetry
    654      exponential histogram VIDEO_WIDEVINE_PLAY_TIME_MS.
    655    time_unit: millisecond
    656    bugs:
    657      - https://bugzilla.mozilla.org/show_bug.cgi?id=1662212
    658      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    659    data_reviews:
    660      - https://bugzilla.mozilla.org/show_bug.cgi?id=1662212
    661      - https://bugzilla.mozilla.org/show_bug.cgi?id=1685399
    662    notification_emails:
    663      - media-alerts@mozilla.com
    664    expires: never
    665    telemetry_mirror: VIDEO_WIDEVINE_PLAY_TIME_MS
    666 
    667  video_dropped_frames_proportion:
    668    type: custom_distribution
    669    description: >
    670      Percentage of frames decoded frames dropped between starting and stopping
    671      a video
    672 
    673      This metric was generated to correspond to the Legacy Telemetry linear
    674      histogram VIDEO_DROPPED_FRAMES_PROPORTION.
    675    range_min: 1
    676    range_max: 100
    677    bucket_count: 50
    678    histogram_type: linear
    679    unit: percentage
    680    bugs:
    681      - https://bugzilla.mozilla.org/show_bug.cgi?id=1238433
    682      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    683    data_reviews:
    684      - https://bugzilla.mozilla.org/show_bug.cgi?id=1238433
    685      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    686    notification_emails:
    687      - media-alerts@mozilla.com
    688    expires: never
    689    telemetry_mirror: VIDEO_DROPPED_FRAMES_PROPORTION
    690 
    691  video_dropped_frames_proportion_exponential:
    692    type: custom_distribution
    693    description: >
    694      Ratio of dropped frames per total decoded frames scaled by 10,000 between
    695      starting and stopping a video
    696 
    697      This metric was generated to correspond to the Legacy Telemetry
    698      exponential histogram VIDEO_DROPPED_FRAMES_PROPORTION_EXPONENTIAL.
    699    range_min: 1
    700    range_max: 10000
    701    bucket_count: 100
    702    histogram_type: exponential
    703    bugs:
    704      - https://bugzilla.mozilla.org/show_bug.cgi?id=1238433
    705      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    706      - https://bugzilla.mozilla.org/show_bug.cgi?id=1752207
    707      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755363
    708    data_reviews:
    709      - https://bugzilla.mozilla.org/show_bug.cgi?id=1238433
    710      - https://bugzilla.mozilla.org/show_bug.cgi?id=1570634
    711      - https://bugzilla.mozilla.org/show_bug.cgi?id=1752207
    712      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755363
    713    notification_emails:
    714      - media-alerts@mozilla.com
    715    expires: never
    716    telemetry_mirror: VIDEO_DROPPED_FRAMES_PROPORTION_EXPONENTIAL
    717 
    718  video_dropped_decoded_frames_proportion_exponential:
    719    type: custom_distribution
    720    description: >
    721      Ratio of decoder dropped frames per total decoded frames scaled by 10,000
    722      between starting and stopping a video
    723 
    724      This metric was generated to correspond to the Legacy Telemetry
    725      exponential histogram VIDEO_DROPPED_DECODED_FRAMES_PROPORTION_EXPONENTIAL.
    726    range_min: 1
    727    range_max: 10000
    728    bucket_count: 100
    729    histogram_type: exponential
    730    bugs:
    731      - https://bugzilla.mozilla.org/show_bug.cgi?id=1761994
    732    data_reviews:
    733      - https://bugzilla.mozilla.org/show_bug.cgi?id=1761994
    734    notification_emails:
    735      - media-alerts@mozilla.com
    736    expires: never
    737    telemetry_mirror: VIDEO_DROPPED_DECODED_FRAMES_PROPORTION_EXPONENTIAL
    738 
    739  video_dropped_sink_frames_proportion_exponential:
    740    type: custom_distribution
    741    description: >
    742      Ratio of sink dropped frames per total decoded frames scaled by 10,000
    743      between starting and stopping a video
    744 
    745      This metric was generated to correspond to the Legacy Telemetry
    746      exponential histogram VIDEO_DROPPED_SINK_FRAMES_PROPORTION_EXPONENTIAL.
    747    range_min: 1
    748    range_max: 10000
    749    bucket_count: 100
    750    histogram_type: exponential
    751    bugs:
    752      - https://bugzilla.mozilla.org/show_bug.cgi?id=1761994
    753    data_reviews:
    754      - https://bugzilla.mozilla.org/show_bug.cgi?id=1761994
    755    notification_emails:
    756      - media-alerts@mozilla.com
    757    expires: never
    758    telemetry_mirror: VIDEO_DROPPED_SINK_FRAMES_PROPORTION_EXPONENTIAL
    759 
    760  video_dropped_compositor_frames_proportion_exponential:
    761    type: custom_distribution
    762    description: >
    763      Ratio of compositor dropped frames per total decoded frames scaled by
    764      10,000 between starting and stopping a video
    765 
    766      This metric was generated to correspond to the Legacy Telemetry
    767      exponential histogram
    768      VIDEO_DROPPED_COMPOSITOR_FRAMES_PROPORTION_EXPONENTIAL.
    769    range_min: 1
    770    range_max: 10000
    771    bucket_count: 100
    772    histogram_type: exponential
    773    bugs:
    774      - https://bugzilla.mozilla.org/show_bug.cgi?id=1761994
    775    data_reviews:
    776      - https://bugzilla.mozilla.org/show_bug.cgi?id=1761994
    777    notification_emails:
    778      - media-alerts@mozilla.com
    779    expires: never
    780    telemetry_mirror: VIDEO_DROPPED_COMPOSITOR_FRAMES_PROPORTION_EXPONENTIAL
    781 
    782  codec_used:
    783    type: labeled_counter
    784    description: >
    785      Count of use of audio/video codecs in HTMLMediaElements and WebAudio.
    786      Those with 'resource' prefix are approximate; report based on HTTP
    787      ContentType or sniffing. Those with 'webaudio' prefix are for WebAudio.
    788 
    789      This metric was generated to correspond to the Legacy Telemetry count
    790      histogram MEDIA_CODEC_USED.
    791    bugs:
    792      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
    793    data_reviews:
    794      - https://bugzilla.mozilla.org/show_bug.cgi?id=1935420
    795    notification_emails:
    796      - media-alerts@mozilla.com
    797    expires: never
    798    telemetry_mirror: h#MEDIA_CODEC_USED
    799 
    800  mse_source_buffer_type:
    801    type: labeled_counter
    802    description: >
    803      Count the actual or possible (because we don't support some of them for
    804      now) usage amount for each media mime type used in MSE. We collect this
    805      data in MediaSource's `AddSourceBuffer()` and `IsTypeSupported()`.
    806 
    807      This metric was generated to correspond to the Legacy Telemetry
    808      categorical histogram MSE_SOURCE_BUFFER_TYPE.
    809    labels:
    810      - VideoHevc
    811      - VideoWebm
    812      - AudioWebm
    813      - VideoMp4
    814      - AudioMp4
    815      - VideoMp2t
    816      - AudioMp2t
    817      - AudioMpeg
    818      - AudioAac
    819    bugs:
    820      - https://bugzilla.mozilla.org/show_bug.cgi?id=1699249
    821      - https://bugzilla.mozilla.org/show_bug.cgi?id=1848211
    822    data_reviews:
    823      - https://bugzilla.mozilla.org/show_bug.cgi?id=1699249
    824      - https://bugzilla.mozilla.org/show_bug.cgi?id=1848211
    825    notification_emails:
    826      - media-alerts@mozilla.com
    827    expires: never
    828    telemetry_mirror: h#MSE_SOURCE_BUFFER_TYPE