From 61a49c362749ac0a07e2a2a97a13d66beaca87fb Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Tue, 22 Oct 2024 10:10:16 +0530 Subject: [PATCH] fix: do not extract attributes for change results --- scrapers/processors/json.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scrapers/processors/json.go b/scrapers/processors/json.go index b3d9ce96..e595ccb9 100644 --- a/scrapers/processors/json.go +++ b/scrapers/processors/json.go @@ -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{}