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 authored and moshloop committed Oct 22, 2024
1 parent e3db3e8 commit 61a49c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scrapers/processors/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,11 @@ func (e Extract) Extract(ctx api.ScrapeContext, inputs ...v1.ScrapeResult) ([]v1
logScrapes := ctx.PropertyOn(true, "log.items")

for _, input := range inputs {
// Do not extract anything from change results
if len(input.Changes) > 0 {
continue
}

for k, v := range input.BaseScraper.Labels {
if input.Labels == nil {
input.Labels = map[string]string{}
Expand Down

0 comments on commit 61a49c3

Please sign in to comment.