Skip to content

Commit

Permalink
fix: remove event.received from aggregated events
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall committed Jun 9, 2024
1 parent 5730cf6 commit cd81d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/apm-server/aggregation/lsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/elastic/apm-aggregation/aggregationpb"
"github.com/elastic/apm-aggregation/aggregators"
"github.com/elastic/apm-data/model/modelpb"
"github.com/elastic/apm-data/model/modelprocessor"
"github.com/elastic/elastic-agent-libs/logp"
)

Expand Down Expand Up @@ -96,6 +97,7 @@ func wrapNextProcessor(processor modelpb.BatchProcessor) aggregators.Processor {
if err != nil {
return fmt.Errorf("failed to convert combined metrics to batch: %w", err)
}
modelprocessor.RemoveEventReceived{}.ProcessBatch(ctx, batch)
if err := processor.ProcessBatch(
ctx,
batch,
Expand Down

0 comments on commit cd81d8a

Please sign in to comment.