Skip to content

Commit fa5fdbd

Browse files
committed
Always use ProcessorEvent.metric and fix router link in backend popover
1 parent 218f3fd commit fa5fdbd

3 files changed

Lines changed: 3 additions & 13 deletions

File tree

x-pack/plugins/apm/public/components/app/service_map/Popover/backend_contents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher';
1717
import { StatsList } from './stats_list';
1818

1919
export function BackendContents({ nodeData }: ContentsProps) {
20-
const { query } = useApmParams('/service-map');
20+
const { query } = useApmParams('*/service-map/*');
2121
const apmRouter = useApmRouter();
2222
const {
2323
urlParams: { environment, start, end },

x-pack/plugins/apm/server/lib/service_map/get_service_map_backend_node_info.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM,
1414
} from '../../../common/elasticsearch_fieldnames';
1515
import { EventOutcome } from '../../../common/event_outcome';
16+
import { ProcessorEvent } from '../../../common/processor_event';
1617
import { environmentQuery } from '../../../common/utils/environment_query';
1718
import { withApmSpan } from '../../utils/with_apm_span';
1819
import { 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

2929
export 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,

x-pack/plugins/apm/server/routes/service_map.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,10 @@ const serviceMapBackendNodeRoute = createApmServerRoute({
126126
query: { environment },
127127
} = params;
128128

129-
const searchAggregatedTransactions = await getSearchAggregatedTransactions(
130-
setup
131-
);
132-
133129
return getServiceMapBackendNodeInfo({
134130
environment,
135131
setup,
136132
backendName,
137-
searchAggregatedTransactions,
138133
});
139134
},
140135
});

0 commit comments

Comments
 (0)