Skip to content

Commit

Permalink
fix(logql): bump api, pick up fix to query context (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme authored Dec 22, 2024
1 parent 7898622 commit 8bf5fb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/go-logfmt/logfmt v0.5.1
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/humanlogio/api/go v0.0.0-20241222094300-0b4f4b67d589
github.com/humanlogio/api/go v0.0.0-20241222135339-d80f3e9c70c3
github.com/humanlogio/humanlog-pro v0.0.0-20241222102640-7d8e5c5aa73f
github.com/kr/logfmt v0.0.0-20210122060352-19f9bcb100e6
github.com/lrstanley/bubblezone v0.0.0-20240914071701-b48c55a5e78e
Expand Down Expand Up @@ -89,3 +89,5 @@ require (
)

// replace github.com/humanlogio/api/go => ../api/go

// replace github.com/humanlogio/humanlog-pro => ../humanlog-pro
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0=
github.com/humanlogio/api/go v0.0.0-20241222094300-0b4f4b67d589 h1:qN+0Si/PicOj3CRTnUnpfv5jgHDbQfXNgNqe180mjyU=
github.com/humanlogio/api/go v0.0.0-20241222094300-0b4f4b67d589/go.mod h1:sjMKAl97fvxNckIhcGWAxZwv6+c+I0thx5QvMc1ifaM=
github.com/humanlogio/api/go v0.0.0-20241222135339-d80f3e9c70c3 h1:w8BGAociqmcpN6Rfe4tK03leB4HgNZSenLxUZiuCt+I=
github.com/humanlogio/api/go v0.0.0-20241222135339-d80f3e9c70c3/go.mod h1:sjMKAl97fvxNckIhcGWAxZwv6+c+I0thx5QvMc1ifaM=
github.com/humanlogio/humanlog-pro v0.0.0-20241217115348-251a98ffde3c h1:FPMln3Ff3WTEiX6z69DxxuxLaZZCNgRbKHtDdXohe0c=
github.com/humanlogio/humanlog-pro v0.0.0-20241217115348-251a98ffde3c/go.mod h1:+DAvLjnurssG0w1mZrGDqAA6ZfHcllzvC97nVGvi4cE=
github.com/humanlogio/humanlog-pro v0.0.0-20241222102200-c967666b42e8 h1:MCJft1BV1zELeR4jld8uvTxiqUE2tGBDskL4T/60z/4=
Expand Down
4 changes: 1 addition & 3 deletions internal/localsvc/svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,7 @@ func (svc *Service) WatchQuery(ctx context.Context, req *connect.Request[qrv1.Wa
query = q
}

ll := svc.ll.With(
slog.String("query.query", query.Query.String()),
)
ll := svc.ll.With(slog.String("query.query", query.Query.String()))

if query.From != nil {
ll = ll.With(slog.String("query.from", query.From.AsTime().Format(time.RFC3339Nano)))
Expand Down

0 comments on commit 8bf5fb7

Please sign in to comment.