@@ -13,6 +13,7 @@ import {
1313 SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM ,
1414} from '../../../common/elasticsearch_fieldnames' ;
1515import { EventOutcome } from '../../../common/event_outcome' ;
16+ import { ProcessorEvent } from '../../../common/processor_event' ;
1617import { environmentQuery } from '../../../common/utils/environment_query' ;
1718import { withApmSpan } from '../../utils/with_apm_span' ;
1819import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions' ;
@@ -23,14 +24,12 @@ interface Options {
2324 setup : Setup & SetupTimeRange ;
2425 environment ?: string ;
2526 backendName : string ;
26- searchAggregatedTransactions : boolean ;
2727}
2828
2929export function getServiceMapBackendNodeInfo ( {
3030 environment,
3131 backendName,
3232 setup,
33- searchAggregatedTransactions,
3433} : Options ) {
3534 return withApmSpan ( 'get_service_map_backend_node_stats' , async ( ) => {
3635 const { apmEventClient, start, end } = setup ;
@@ -39,11 +38,7 @@ export function getServiceMapBackendNodeInfo({
3938 'get_service_map_backend_node_stats' ,
4039 {
4140 apm : {
42- events : [
43- getProcessorEventForAggregatedTransactions (
44- searchAggregatedTransactions
45- ) ,
46- ] ,
41+ events : [ ProcessorEvent . metric ] ,
4742 } ,
4843 body : {
4944 size : 0 ,
0 commit comments