Skip to content

Commit

Permalink
better stat name again
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Dec 10, 2024
1 parent eb4a624 commit 50b95e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions go/vt/topo/stats_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ var (
"TopologyConnErrors errors per operation",
[]string{"Operation", "Cell"})

topoStatsReadWaitTimings = stats.NewMultiTimings(
"TopologyReadWaits",
"TopologyReadWait timings",
topoStatsConnReadWaitTimings = stats.NewMultiTimings(
"TopologyConnReadWaits",
"TopologyConnReadWait timings",
[]string{"Operation", "Cell"})
)

Expand Down Expand Up @@ -74,7 +74,7 @@ func (st *StatsConn) ListDir(ctx context.Context, dirPath string, full bool) ([]
return nil, err
}
defer st.readSem.Release(1)
topoStatsReadWaitTimings.Record(statsKey, startTime)
topoStatsConnReadWaitTimings.Record(statsKey, startTime)
defer topoStatsConnTimings.Record(statsKey, startTime)
res, err := st.conn.ListDir(ctx, dirPath, full)
if err != nil {
Expand Down Expand Up @@ -124,7 +124,7 @@ func (st *StatsConn) Get(ctx context.Context, filePath string) ([]byte, Version,
return nil, nil, err
}
defer st.readSem.Release(1)
topoStatsReadWaitTimings.Record(statsKey, startTime)
topoStatsConnReadWaitTimings.Record(statsKey, startTime)
defer topoStatsConnTimings.Record(statsKey, startTime)
bytes, version, err := st.conn.Get(ctx, filePath)
if err != nil {
Expand All @@ -142,7 +142,7 @@ func (st *StatsConn) List(ctx context.Context, filePathPrefix string) ([]KVInfo,
return nil, err
}
defer st.readSem.Release(1)
topoStatsReadWaitTimings.Record(statsKey, startTime)
topoStatsConnReadWaitTimings.Record(statsKey, startTime)
defer topoStatsConnTimings.Record(statsKey, startTime)
bytes, err := st.conn.List(ctx, filePathPrefix)
if err != nil {
Expand Down

0 comments on commit 50b95e1

Please sign in to comment.