Skip to content

Commit 50b95e1

Browse files
better stat name again
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
1 parent eb4a624 commit 50b95e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

go/vt/topo/stats_conn.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ var (
4040
"TopologyConnErrors errors per operation",
4141
[]string{"Operation", "Cell"})
4242

43-
topoStatsReadWaitTimings = stats.NewMultiTimings(
44-
"TopologyReadWaits",
45-
"TopologyReadWait timings",
43+
topoStatsConnReadWaitTimings = stats.NewMultiTimings(
44+
"TopologyConnReadWaits",
45+
"TopologyConnReadWait timings",
4646
[]string{"Operation", "Cell"})
4747
)
4848

@@ -74,7 +74,7 @@ func (st *StatsConn) ListDir(ctx context.Context, dirPath string, full bool) ([]
7474
return nil, err
7575
}
7676
defer st.readSem.Release(1)
77-
topoStatsReadWaitTimings.Record(statsKey, startTime)
77+
topoStatsConnReadWaitTimings.Record(statsKey, startTime)
7878
defer topoStatsConnTimings.Record(statsKey, startTime)
7979
res, err := st.conn.ListDir(ctx, dirPath, full)
8080
if err != nil {
@@ -124,7 +124,7 @@ func (st *StatsConn) Get(ctx context.Context, filePath string) ([]byte, Version,
124124
return nil, nil, err
125125
}
126126
defer st.readSem.Release(1)
127-
topoStatsReadWaitTimings.Record(statsKey, startTime)
127+
topoStatsConnReadWaitTimings.Record(statsKey, startTime)
128128
defer topoStatsConnTimings.Record(statsKey, startTime)
129129
bytes, version, err := st.conn.Get(ctx, filePath)
130130
if err != nil {
@@ -142,7 +142,7 @@ func (st *StatsConn) List(ctx context.Context, filePathPrefix string) ([]KVInfo,
142142
return nil, err
143143
}
144144
defer st.readSem.Release(1)
145-
topoStatsReadWaitTimings.Record(statsKey, startTime)
145+
topoStatsConnReadWaitTimings.Record(statsKey, startTime)
146146
defer topoStatsConnTimings.Record(statsKey, startTime)
147147
bytes, err := st.conn.List(ctx, filePathPrefix)
148148
if err != nil {

0 commit comments

Comments
 (0)