TUN-8243: Collect metrics on the number of QUIC frames sent/received

This commit also removed the server metrics that is no longer used
This commit is contained in:
chungthuang
2024-02-16 11:28:59 +00:00
committed by Chung-Ting Huang
parent 971360d5e0
commit 34a876e4e7
3 changed files with 106 additions and 364 deletions

View File

@@ -7,17 +7,6 @@ import (
"github.com/quic-go/quic-go/logging"
)
func perspectiveString(p logging.Perspective) string {
switch p {
case logging.PerspectiveClient:
return "client"
case logging.PerspectiveServer:
return "server"
default:
return ""
}
}
// Helper to convert logging.ByteCount(alias for int64) to float64 used in prometheus
func byteCountToPromCount(count logging.ByteCount) float64 {
return float64(count)