Skip to content

Commit

Permalink
fix(codec): inject disable wrappers in ctx (#12352)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwanthgoli authored Mar 26, 2024
1 parent a36483b commit 64c7812
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/querier/queryrange/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ func (Codec) DecodeHTTPGrpcRequest(ctx context.Context, r *httpgrpc.HTTPRequest)
ctx = httpreq.InjectQueryTags(ctx, queryTags)
}

// Add disable pipleine wrappers
if disableWrappers := httpReq.Header.Get(httpreq.LokiDisablePipelineWrappersHeader); disableWrappers != "" {
httpreq.InjectHeader(ctx, httpreq.LokiDisablePipelineWrappersHeader, disableWrappers)
}

// Add query metrics
if queueTimeHeader := httpReq.Header.Get(string(httpreq.QueryQueueTimeHTTPHeader)); queueTimeHeader != "" {
queueTime, err := time.ParseDuration(queueTimeHeader)
Expand Down

0 comments on commit 64c7812

Please sign in to comment.