-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APM] When using search bar UI should fall back to transactions #103987
[APM] When using search bar UI should fall back to transactions #103987
Conversation
Pinging @elastic/apm-ui (Team:apm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we thought about the difference between auto
and always
? If always
is selected, should it still fall back to transaction documents? always
was mostly intended as a way to prevent an extra ES call. But it might be reasonable to fall back to transaction documents if kuery
is a (non-empty) string.
If |
Oh.. I see what you mean now: export async function getSearchAggregatedTransactions({
config,
start,
end,
kuery,
apmEventClient,
}: {...}) {
const searchAggregatedTransactions =
config['xpack.apm.searchAggregatedTransactions'];
if (
kuery || searchAggregatedTransactions === SearchAggregatedTransactionSetting.auto
) {
return getHasAggregatedTransactions({ start, end, kuery, apmEventClient });
}
return (
searchAggregatedTransactions === SearchAggregatedTransactionSetting.always
);
} I think that makes sense |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
…tic#103987) * adding kuery bar to search transactions metrics * addressig PR comments * fixing api test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…tic#103987) * adding kuery bar to search transactions metrics * addressig PR comments * fixing api test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
) (#104352) * adding kuery bar to search transactions metrics * addressig PR comments * fixing api test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
) (#104351) * adding kuery bar to search transactions metrics * addressig PR comments * fixing api test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
closes #103425