Skip to content

Commit

Permalink
fixup! Run make format to please linter
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Haudum <[email protected]>
  • Loading branch information
chaudum committed Jan 7, 2025
1 parent d1f3d13 commit 226fa9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/distributor/distributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,15 +549,15 @@ func (d *Distributor) Push(ctx context.Context, req *logproto.PushRequest) (*log
}
}
if shouldDiscoverLevels {
pprof.Do(ctx, pprof.Labels("action", "discover_log_level"), func(ctx context.Context) {
pprof.Do(ctx, pprof.Labels("action", "discover_log_level"), func(_ context.Context) {
logLevel, ok := fieldDetector.extractLogLevel(lbs, structuredMetadata, entry)
if ok {
entry.StructuredMetadata = append(entry.StructuredMetadata, logLevel)
}
})
}
if shouldDiscoverGenericFields {
pprof.Do(ctx, pprof.Labels("action", "discover_generic_fields"), func(ctx context.Context) {
pprof.Do(ctx, pprof.Labels("action", "discover_generic_fields"), func(_ context.Context) {
for field, hints := range fieldDetector.validationContext.discoverGenericFields {
extracted, ok := fieldDetector.extractGenericField(field, hints, lbs, structuredMetadata, entry)
if ok {
Expand Down

0 comments on commit 226fa9c

Please sign in to comment.