Skip to content

Commit

Permalink
TUN-8243: Collect metrics on the number of QUIC frames sent/received
Browse files Browse the repository at this point in the history
This commit also removed the server metrics that is no longer used
  • Loading branch information
chungthuang committed Feb 19, 2024
1 parent 971360d commit 34a876e
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 364 deletions.
11 changes: 0 additions & 11 deletions quic/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading

0 comments on commit 34a876e

Please sign in to comment.