mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[APM] Don't use transaction metrics if set to never (#117370)
Closes #117226.
This commit is contained in:
parent
b609b1e450
commit
a693e6aa11
1 changed files with 15 additions and 10 deletions
|
@ -63,18 +63,23 @@ export async function getSearchAggregatedTransactions({
|
|||
apmEventClient: APMEventClient;
|
||||
kuery: string;
|
||||
}): Promise<boolean> {
|
||||
const searchAggregatedTransactions = config.searchAggregatedTransactions;
|
||||
switch (config.searchAggregatedTransactions) {
|
||||
case SearchAggregatedTransactionSetting.always:
|
||||
return kuery
|
||||
? getHasAggregatedTransactions({ start, end, apmEventClient, kuery })
|
||||
: true;
|
||||
|
||||
if (
|
||||
kuery ||
|
||||
searchAggregatedTransactions === SearchAggregatedTransactionSetting.auto
|
||||
) {
|
||||
return getHasAggregatedTransactions({ start, end, apmEventClient, kuery });
|
||||
case SearchAggregatedTransactionSetting.auto:
|
||||
return getHasAggregatedTransactions({
|
||||
start,
|
||||
end,
|
||||
apmEventClient,
|
||||
kuery,
|
||||
});
|
||||
|
||||
case SearchAggregatedTransactionSetting.never:
|
||||
return false;
|
||||
}
|
||||
|
||||
return (
|
||||
searchAggregatedTransactions === SearchAggregatedTransactionSetting.always
|
||||
);
|
||||
}
|
||||
|
||||
export function getTransactionDurationFieldForTransactions(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue