Skip to content

Commit 8bbe4d6

Browse files
committed
add null check for event representative count
1 parent 953a141 commit 8bbe4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/apm-data/src/main/resources/ingest-pipelines/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ processors:
3131
ignore_failure: true
3232
ignore_missing: true
3333
- script:
34-
if: ctx.event?.outcome == 'success'
34+
if: ctx.event?.outcome == 'success' && ctx[ctx.processor?.event]?.representative_count != null
3535
source: |
3636
ctx.event.success_count = ctx[ctx.processor?.event]?.representative_count;
3737
- set:

0 commit comments

Comments
 (0)