Skip to content

Commit 34a876e

Browse files
committed
TUN-8243: Collect metrics on the number of QUIC frames sent/received
This commit also removed the server metrics that is no longer used
1 parent 971360d commit 34a876e

File tree

3 files changed

+106
-364
lines changed

3 files changed

+106
-364
lines changed

quic/conversion.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@ import (
77
"github.com/quic-go/quic-go/logging"
88
)
99

10-
func perspectiveString(p logging.Perspective) string {
11-
switch p {
12-
case logging.PerspectiveClient:
13-
return "client"
14-
case logging.PerspectiveServer:
15-
return "server"
16-
default:
17-
return ""
18-
}
19-
}
20-
2110
// Helper to convert logging.ByteCount(alias for int64) to float64 used in prometheus
2211
func byteCountToPromCount(count logging.ByteCount) float64 {
2312
return float64(count)

0 commit comments

Comments
 (0)