Skip to content

Commit

Permalink
fix: log state of 'disable pipeline wrappers' (#12345)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasslessParticle authored Mar 25, 2024
1 parent c74d0eb commit 04398a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/logql/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ func RecordRangeAndInstantQueryMetrics(

logValues = append(logValues, tagsToKeyValues(queryTags)...)

if httpreq.ExtractHeader(ctx, httpreq.LokiDisablePipelineWrappersHeader) == "true" {
logValues = append(logValues, "disable_pipeline_wrappers", "true")
} else {
logValues = append(logValues, "disable_pipeline_wrappers", "false")
}

level.Info(logger).Log(
logValues...,
)
Expand Down

0 comments on commit 04398a1

Please sign in to comment.