Skip to content
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

Merged
merged 4 commits into from
Jul 5, 2021

Conversation

cauemarcondes
Copy link
Contributor

closes #103425

@cauemarcondes cauemarcondes added release_note:fix v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 labels Jun 30, 2021
@cauemarcondes cauemarcondes requested a review from a team as a code owner June 30, 2021 19:26
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Jun 30, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@dgieselaar dgieselaar left a 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.

@sorenlouv
Copy link
Member

sorenlouv commented Jul 1, 2021

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 always falls back to using transactions, then what is the difference between always and auto? Right now it doesn't fallback and I think that makes sense.

@sorenlouv
Copy link
Member

sorenlouv commented Jul 1, 2021

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

@cauemarcondes
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cauemarcondes cauemarcondes merged commit b0b0584 into elastic:master Jul 5, 2021
@cauemarcondes cauemarcondes deleted the apm-search-bar-fallback branch July 5, 2021 20:15
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 5, 2021
…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>
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 5, 2021
…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>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.14
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jul 5, 2021
) (#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>
kibanamachine added a commit that referenced this pull request Jul 5, 2021
) (#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:fix Team:APM All issues that need APM UI Team support v7.14.0 v7.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] When using search bar UI should fall back to transactions
5 participants