@@ -74,7 +74,7 @@ import (
74
74
"github.com/cockroachdb/cockroach/pkg/sql/sem/catconstants"
75
75
"github.com/cockroachdb/cockroach/pkg/sql/sem/tree"
76
76
"github.com/cockroachdb/cockroach/pkg/sql/sqlinstance"
77
- "github.com/cockroachdb/cockroach/pkg/sql/sqlstats/insights "
77
+ "github.com/cockroachdb/cockroach/pkg/sql/sqlstats/insightspb "
78
78
"github.com/cockroachdb/cockroach/pkg/util/grpcutil"
79
79
"github.com/cockroachdb/cockroach/pkg/util/hlc"
80
80
"github.com/cockroachdb/cockroach/pkg/util/httputil"
@@ -395,18 +395,18 @@ func (b *baseStatusServer) localExecutionInsights(
395
395
) (* serverpb.ListExecutionInsightsResponse , error ) {
396
396
var response serverpb.ListExecutionInsightsResponse
397
397
398
- highContentionInsights := make (map [uuid.UUID ]insights .Insight , 0 )
398
+ highContentionInsights := make (map [uuid.UUID ]insightspb .Insight , 0 )
399
399
reader := b .sqlServer .pgServer .SQLServer .GetInsightsReader ()
400
- reader .IterateInsights (ctx , func (ctx context.Context , insight * insights .Insight ) {
400
+ reader .IterateInsights (ctx , func (ctx context.Context , insight * insightspb .Insight ) {
401
401
if insight == nil {
402
402
return
403
403
}
404
404
405
405
// Copy statements slice - these insights objects can be read concurrently.
406
406
insightsCopy := * insight
407
- insightsCopy .Statements = make ([]* insights .Statement , len (insight .Statements ))
407
+ insightsCopy .Statements = make ([]* insightspb .Statement , len (insight .Statements ))
408
408
copy (insightsCopy .Statements , insight .Statements )
409
- if insight .Transaction != nil && slices .Contains (insight .Transaction .Causes , insights .Cause_HighContention ) {
409
+ if insight .Transaction != nil && slices .Contains (insight .Transaction .Causes , insightspb .Cause_HighContention ) {
410
410
// Collect high contention insights seperately, they need additional validation / filtering.
411
411
// If it is valid we will add it to the response later.
412
412
highContentionInsights [insightsCopy .Transaction .ID ] = insightsCopy
@@ -437,7 +437,7 @@ func (b *baseStatusServer) localExecutionInsights(
437
437
// events that are related to the passed in (contention) insights. The insights that have
438
438
// valid (resolved BlockingTxnFingerprintID) contention events are returned.
439
439
func validContentionInsights (
440
- registry * contention.Registry , contentionInsights map [uuid.UUID ]insights .Insight ,
440
+ registry * contention.Registry , contentionInsights map [uuid.UUID ]insightspb .Insight ,
441
441
) (map [uuid.UUID ]bool , error ) {
442
442
valid := make (map [uuid.UUID ]bool , len (contentionInsights ))
443
443
err := registry .ForEachEvent (func (event * contentionpb.ExtendedContentionEvent ) error {
0 commit comments