Skip to content

Commit

Permalink
chore: more debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Jun 17, 2024
1 parent 12b3636 commit 1133763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/pattern/ingester.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (i *Ingester) QuerySample(
return err
}

level.Info(i.logger).Log("msg", "QuerySample", "instanceID", instanceID, "expr", expr)
iterator, err := instance.QuerySample(ctx, expr, req) // this is returning a first value of 0,0
if err != nil {
return err
Expand Down
2 changes: 2 additions & 0 deletions pkg/pattern/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"

"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/multierror"
"github.com/prometheus/common/model"
Expand Down Expand Up @@ -159,6 +160,7 @@ func (i *instance) forMatchingStreams(
) error {
filters, matchers := util.SplitFiltersAndMatchers(matchers)
ids, err := i.index.Lookup(matchers, nil)
level.Debug(i.logger).Log("msg", "forMatchingStreams", "ids", ids)
if err != nil {
return err
}
Expand Down

0 comments on commit 1133763

Please sign in to comment.