Skip to content

Commit

Permalink
metrics for speed clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter committed Jul 17, 2024
1 parent a01d69f commit 613aa68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/device-stream/Display.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,14 @@ import { useDeviceStreamPools } from './use-device-stream-pools'
import { useHead } from '@vueuse/head'
import { useRouteQuery } from '@vueuse/router'
import { useTheme } from '../../hooks/theme'
import { useDateFormat, useTimestamp } from '@vueuse/core'
import { metrics } from '@sentry/vue'
import DeviceNotSet from '../../components/DeviceNotSet.vue'
import SpeedLiveScore from '../../components/SpeedLiveScore.vue'
import TimingLiveScore from '../../components/TimingLiveScore.vue'
import UnsupportedCompetitionEvent from '../../components/UnsupportedCompetitionEvent.vue'
import { getHeatNameList, useHeatInfo } from '../../hooks/heat-info'
import { useDateFormat, useTimestamp } from '@vueuse/core'
useHead({
title: '📺 Device Stream (Live)'
Expand Down Expand Up @@ -149,6 +150,10 @@ function markStreamWatcher (res: DeviceStreamMarkAddedSubscription | null | unde
const mark = res.deviceStreamMarkAdded.mark as Mark
const info = res.deviceStreamMarkAdded.info
metrics.distribution('stream_mark_delay', Date.now() - mark.timestamp, {
unit: 'millisecond'
})
let tallyInfo = tallies[deviceId]
if (!tallyInfo) {
tallyInfo = {
Expand Down

0 comments on commit 613aa68

Please sign in to comment.