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] Use transaction metrics for distribution charts #78484

Merged

Conversation

dgieselaar
Copy link
Member

Closes #77717.

@dgieselaar dgieselaar added Team:APM All issues that need APM UI Team support release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Sep 24, 2020
@dgieselaar dgieselaar requested a review from a team as a code owner September 24, 2020 19:03
@elasticmachine
Copy link
Contributor

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

@dgieselaar dgieselaar force-pushed the distribution-transaction-metrics branch from c3da520 to e97ce9e Compare September 24, 2020 19:05
@dgieselaar dgieselaar force-pushed the distribution-transaction-metrics branch from e97ce9e to 0b15c03 Compare September 24, 2020 19:05
@dgieselaar
Copy link
Member Author

@elasticmachine merge upstream

1 similar comment
@dgieselaar
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@@ -69,10 +69,12 @@ export function useTransactionDistribution(urlParams: IUrlParams) {
// selected sample was not found. select a new one:
// sorted by total number of requests, but only pick
// from buckets that have samples
const bucketsSortedByPreference = response.buckets
Copy link
Member

@sorenlouv sorenlouv Sep 29, 2020

Choose a reason for hiding this comment

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

From the name it sounds like the sorting depends on something. But they are always sorted by count, no?

Suggested change
const bucketsSortedByPreference = response.buckets
const bucketsSortedByCount = response.buckets

or perhaps

Suggested change
const bucketsSortedByPreference = response.buckets
const bucketsSorted = response.buckets

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes - will change it to bucketsSortedByCount.

noHits: buckets.length === 0,
bucketSize,
buckets,
};
}
Copy link
Member

@sorenlouv sorenlouv Sep 29, 2020

Choose a reason for hiding this comment

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

I see the "fetcher" and "transform" have merged. I think the separation was nice in theory but perhaps it's not working out?

Copy link
Member Author

Choose a reason for hiding this comment

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

It felt awkward moving back and forth between three files. As the fetch implementation was already significantly longer than the transform, I merged the three files into one.

const url = `/api/apm/services/opbeans-java/transaction_groups/distribution?${qs.stringify({
start,
end,
uiFilters,
Copy link
Member

Choose a reason for hiding this comment

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

Tiny nit: this might as well be inlined if we don't use uiFilters elsewhere (similar to transactionName and transactionType)

Suggested change
uiFilters,
uiFilters: {},

Copy link
Member Author

Choose a reason for hiding this comment

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

cheers, nice little improvement. (will do it for start/end as well).

});
});
});
}
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for adding an API test 👍

@dgieselaar dgieselaar merged commit 87ad564 into elastic:master Sep 29, 2020
@dgieselaar dgieselaar deleted the distribution-transaction-metrics branch September 29, 2020 11:00
dgieselaar added a commit that referenced this pull request Sep 29, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
phillipb added a commit to phillipb/kibana that referenced this pull request Sep 29, 2020
…-to-timeline

* 'master' of github.com:elastic/kibana: (22 commits)
  update apm index pattern (elastic#78732)
  78024: move transform out of dataset (elastic#78216)
  [QA][Code Coverage] Upload the coverage static site before ingestion (elastic#78695)
  [Discover] Make _source field not clickable (elastic#78698)
  [Fleet] Rename Ingest Manager => Fleet, Fleet => Agents in the UI (elastic#78685)
  [APM] Review feedback from distribution + transaction metrics (elastic#78752)
  [Ingest pipelines] Add ability to stop pipeline simulation  (elastic#78183)
  [CSM] Fix core vital legend background (elastic#78273)
  [Usage Collection] [schema] Support spreads + `canvas` definition (elastic#78481)
  fix lodash imports (elastic#78456)
  [Maps] Add layer type preview icons (elastic#78650)
  [APM] Use transaction metrics for distribution charts (elastic#78484)
  [Uptime] Ml anomaly alert edit (elastic#76909)
  [ML] Limit exposing shared static code through ml/public/index.ts. (elastic#77745)
  making expression debug info serializable (elastic#78727)
  fix lodahs imports in app-arch code (elastic#78582)
  Make Field a React.lazy export (elastic#78483)
  [Security Solution] Improves detections tests (elastic#77295)
  [TSVB] Different field format on different series is ignored (elastic#78138)
  RFC: Improve saved object migrations (elastic#66056)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Use transaction metrics for distribution charts
4 participants