diff --git a/util/pd_interceptor.go b/util/pd_interceptor.go index 1676d7139..c2c9a0e2d 100644 --- a/util/pd_interceptor.go +++ b/util/pd_interceptor.go @@ -65,7 +65,7 @@ type InterceptedPDClient struct { } func NewInterceptedPDClient(client pd.Client) *InterceptedPDClient { - return &InterceptedPDClient{client.WithCallerComponent("InterceptedPDClient")} + return &InterceptedPDClient{client.WithCallerComponent("intercepted-pd-client")} } // interceptedTsFuture is a PD's wrapper future to record stmt detail. @@ -129,7 +129,7 @@ func (m InterceptedPDClient) GetRegionByID(ctx context.Context, regionID uint64, func (m InterceptedPDClient) ScanRegions(ctx context.Context, key, endKey []byte, limit int, opts ...opt.GetRegionOption) ([]*router.Region, error) { start := time.Now() //nolint:staticcheck - r, err := m.Client.WithCallerComponent("InterceptedPDClient").ScanRegions(ctx, key, endKey, limit, opts...) + r, err := m.Client.WithCallerComponent("intercepted-pd-client").ScanRegions(ctx, key, endKey, limit, opts...) recordPDWaitTime(ctx, start) return r, err }