Skip to content

Commit

Permalink
fix: do not extract attributes for change results
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Oct 22, 2024
1 parent e3db3e8 commit de42b27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapers/processors/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ func (e Extract) Extract(ctx api.ScrapeContext, inputs ...v1.ScrapeResult) ([]v1
}
}

if input.Config == nil {
// Do not extract anything from change results
if input.Config == nil || len(input.Changes) > 0 {
ctx.Errorf("nothing extracted %s: %v", input, input.Error)
continue
}
Expand Down

0 comments on commit de42b27

Please sign in to comment.