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 21, 2020
1 parent f6eb8d6 commit 6000f3c
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 6000f3c

Please sign in to comment.