Skip to content

Commit eb4a624

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

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

go/vt/topo/stats_conn.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ var (
3535
"TopologyConnOperations timings",
3636
[]string{"Operation", "Cell"})
3737

38-
topoStatsConnWaitTimings = stats.NewMultiTimings(
39-
"TopologyConnWaits",
40-
"TopologyConnWait timings",
41-
[]string{"Operation", "Cell"})
42-
4338
topoStatsConnErrors = stats.NewCountersWithMultiLabels(
4439
"TopologyConnErrors",
4540
"TopologyConnErrors errors per operation",
4641
[]string{"Operation", "Cell"})
42+
43+
topoStatsReadWaitTimings = stats.NewMultiTimings(
44+
"TopologyReadWaits",
45+
"TopologyReadWait timings",
46+
[]string{"Operation", "Cell"})
4747
)
4848

4949
const readOnlyErrorStrFormat = "cannot perform %s on %s as the topology server connection is read-only"
@@ -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-
topoStatsConnWaitTimings.Record(statsKey, startTime)
77+
topoStatsReadWaitTimings.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-
topoStatsConnWaitTimings.Record(statsKey, startTime)
127+
topoStatsReadWaitTimings.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-
topoStatsConnWaitTimings.Record(statsKey, startTime)
145+
topoStatsReadWaitTimings.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)