From cc7f8f1f855c2f12793b008a9150fdeb26e110a9 Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Wed, 25 Aug 2021 10:46:38 +0200 Subject: [PATCH] [Ml] Trigger reload for log log histogram and analysis. --- .../app/correlations/failed_transactions_correlations.tsx | 2 +- .../public/components/app/correlations/latency_correlations.tsx | 2 +- .../components/app/transaction_details/distribution/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx b/x-pack/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx index 1e75bd2273848..a80d208dfaf03 100644 --- a/x-pack/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx +++ b/x-pack/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx @@ -95,7 +95,7 @@ export function FailedTransactionsCorrelations({ const startFetchHandler = useCallback(() => { startFetch(searchServicePrams); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [environment, serviceName, kuery, start, end]); + }, [environment, serviceName, transactionType, kuery, start, end]); // start fetching on load // we want this effect to execute exactly once after the component mounts diff --git a/x-pack/plugins/apm/public/components/app/correlations/latency_correlations.tsx b/x-pack/plugins/apm/public/components/app/correlations/latency_correlations.tsx index fe6868474b138..b54f2662c89a3 100644 --- a/x-pack/plugins/apm/public/components/app/correlations/latency_correlations.tsx +++ b/x-pack/plugins/apm/public/components/app/correlations/latency_correlations.tsx @@ -96,7 +96,7 @@ export function LatencyCorrelations({ onFilter }: { onFilter: () => void }) { percentileThreshold: DEFAULT_PERCENTILE_THRESHOLD, }); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [environment, serviceName, kuery, start, end]); + }, [environment, serviceName, transactionType, kuery, start, end]); // start fetching on load // we want this effect to execute exactly once after the component mounts diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.tsx index 63b64242ce529..af523e23fcbed 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.tsx @@ -135,7 +135,7 @@ export function TransactionDistribution({ cancelFetch(); }; // eslint-disable-next-line react-hooks/exhaustive-deps - }, [environment, serviceName, kuery, start, end]); + }, [environment, serviceName, transactionType, kuery, start, end]); useEffect(() => { if (isErrorMessage(error)) {