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 9042d45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scrapers/processors/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ func (e Extract) Extract(ctx api.ScrapeContext, inputs ...v1.ScrapeResult) ([]v1
}
}

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

0 comments on commit 9042d45

Please sign in to comment.