mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add playback metric endpoint sent to OTEL
This commit is contained in:
parent
0e6cd1c00f
commit
fd3c2e8705
35 changed files with 748 additions and 127 deletions
9
server/helpers/custom-validators/metrics.ts
Normal file
9
server/helpers/custom-validators/metrics.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
function isValidPlayerMode (value: any) {
|
||||
return value === 'webtorrent' || value === 'p2p-media-loader'
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
isValidPlayerMode
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue