Skip to content

Commit

Permalink
Fixes the frontend logs to include org_id.
Browse files Browse the repository at this point in the history
The auth middleware was happening after the stats one and so org_id was not set 🤦.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena committed Oct 7, 2020
1 parent 76e73d7 commit 81a697c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ func (t *Loki) initQueryFrontend() (_ services.Service, err error) {

frontendHandler := middleware.Merge(
serverutil.RecoveryHTTPMiddleware,
queryrange.StatsHTTPMiddleware,
t.httpAuthMiddleware,
queryrange.StatsHTTPMiddleware,
serverutil.NewPrepopulateMiddleware(),
serverutil.ResponseJSONMiddleware(),
).Wrap(t.frontend.Handler())
Expand Down

0 comments on commit 81a697c

Please sign in to comment.