@@ -80,7 +80,35 @@ setup:
8080 - ' {"@timestamp": "2017-06-22", "event": {"outcome": "unknown"}}'
8181
8282 - create : {}
83- - ' {"@timestamp": "2017-06-22", "event": {"outcome": "success"}}'
83+ - ' {
84+ "@timestamp": "2017-06-22",
85+ "processor": {"event": "transaction"},
86+ "event": {"outcome": "success"},
87+ "transaction": {"representative_count": 2}
88+ }'
89+
90+ - create : {}
91+ - ' {
92+ "@timestamp": "2017-06-22",
93+ "processor": {"event": "span"},
94+ "event": {"outcome": "success"},
95+ "span": {"representative_count": 3}
96+ }'
97+
98+ - create : {}
99+ - ' {
100+ "@timestamp": "2017-06-22",
101+ "processor": {"event": "span"},
102+ "event": {"outcome": "success"},
103+ "span": {"representative_count": null}
104+ }'
105+
106+ - create : {}
107+ - ' {
108+ "@timestamp": "2017-06-22",
109+ "processor": {"event": "transaction"},
110+ "event": {"outcome": "success"}
111+ }'
84112
85113 - create : {}
86114 - ' {"@timestamp": "2017-06-22", "event": {"outcome": "failure"}}'
@@ -92,11 +120,15 @@ setup:
92120 index : traces-apm-testing
93121 body :
94122 fields : ["event.success_count"]
95- - length : { hits.hits: 4 }
123+ - length : { hits.hits: 7 }
96124 - match : { hits.hits.0.fields: null }
97125 - match : { hits.hits.1.fields: null }
98- - match : { hits.hits.2.fields: {"event.success_count": [1]} }
99- - match : { hits.hits.3.fields: {"event.success_count": [0]} }
126+ - match : { hits.hits.2.fields: {"event.success_count": [2]} }
127+ - match : { hits.hits.3.fields: {"event.success_count": [3]} }
128+ - match : { hits.hits.4.fields: {"event.success_count": [1]} }
129+ - match : { hits.hits.5.fields: {"event.success_count": [1]} }
130+ - match : { hits.hits.6.fields: {"event.success_count": [0]} }
131+
100132---
101133" Test traces-apm-* setting event.ingested via ingest pipeline " :
102134 - requires :
@@ -123,4 +155,4 @@ setup:
123155 fields : ["event.ingested"]
124156 - length : { hits.hits: 2 }
125157 - is_after : { hits.hits.1.fields.event\.ingested.0: "2017-06-22T00:00:00.000Z" }
126-
158+
0 commit comments