Skip to content

Commit 0d91aef

Browse files
siutsinfacebook-github-bot
authored andcommitted
remove legacy stats connections.client_ended
Reviewed By: podtserkovskiy, echistyakov Differential Revision: D83571750 fbshipit-source-id: fe1a87914b4b927c9356725be80a00bd9b616441
1 parent 28ee7f6 commit 0d91aef

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

third-party/thrift/src/thrift/lib/go/thrift/stats/stats.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ func (stats *ServerStats) GetInts() map[string]int64 {
7474
// server event counters
7575
periodStr := fmt.Sprintf("%d", stats.statsPeriod/time.Second)
7676

77-
s := stats.ClientClosed.MustSummarize(stats.statsPeriod)
78-
ints["connections.client_ended."+periodStr] = int64(s.Count)
79-
s = stats.PanicCount.MustSummarize(stats.statsPeriod)
77+
s := stats.PanicCount.MustSummarize(stats.statsPeriod)
8078
ints["requests.processor_panics."+periodStr] = int64(s.Count)
8179

8280
return ints

third-party/thrift/src/thrift/lib/go/thrift/stats/stats_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ func TestStats(t *testing.T) {
2929

3030
ints := stats.GetInts()
3131
expectedInts := map[string]int64{
32-
"connections.client_ended.60": 0,
3332
"requests.processor_panics.60": 0,
3433
"requests.scheduling_work": 0,
3534
"requests.scheduling_write": 0,

0 commit comments

Comments
 (0)