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

Latency percentile labels and instances table support #91758

Merged
merged 8 commits into from
Feb 18, 2021

Conversation

smith
Copy link
Contributor

@smith smith commented Feb 17, 2021

  • Add "(avg.)" to dependencies table column label. (This one is always average.)
  • Add latency aggregation type support to the instances table.
  • Make the memory usage column a bit wider (it was cut off.)

Fixes #90002. Fixes #89533.

* Add "(avg.)" to dependencies table column label. (This one is always average.)
* Add latency aggregation type support to the instances table.
* Make the memory usage column a bit wider (it was cut off.)
@smith smith added release_note:fix v8.0.0 v7.12.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Feb 17, 2021
@smith smith requested a review from a team as a code owner February 17, 2021 21:36
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Feb 17, 2021
@elasticmachine
Copy link
Contributor

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

@@ -397,12 +405,15 @@ export const serviceInstancesRoute = createRoute({
const setup = await setupRequest(context, request);
const { serviceName } = context.params.path;
const { transactionType, numBuckets } = context.params.query;
const latencyAggregationType = (context.params.query
.latencyAggregationType as unknown) as LatencyAggregationType;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need as unknown here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure. I get this:

const latencyAggregationType: LatencyAggregationType
Type '"avg" | "p95" | "p99"' is not assignable to type 'LatencyAggregationType'.
  Type '"avg"' is not assignable to type 'LatencyAggregationType'.ts(2322)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think as LatencyAggregationType is enough, isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No that's what I get when I use as LatencyAggregationType.

@@ -96,7 +96,7 @@ export function ServiceOverviewDependenciesTable({ serviceName }: Props) {
name: i18n.translate(
'xpack.apm.serviceOverview.dependenciesTableColumnLatency',
{
defaultMessage: 'Latency',
defaultMessage: 'Latency (avg.)',
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we also use getLatencyColumnLabel here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could do getLatencyColumnLabel(undefined) but it's always going to be avg because that's the only thing we can get with the dependencies query.

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM just some nits

@smith
Copy link
Contributor Author

smith commented Feb 18, 2021

retest

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
apm 1734 1735 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 5.2MB 5.2MB +334.0B

History

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

@smith smith merged commit f022792 into elastic:master Feb 18, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 18, 2021
* Add "(avg.)" to dependencies table column label. (This one is always average.)
* Add latency aggregation type support to the instances table.
* Make the memory usage column a bit wider (it was cut off.)
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #91794

Successful backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Feb 18, 2021
* Add "(avg.)" to dependencies table column label. (This one is always average.)
* Add latency aggregation type support to the instances table.
* Make the memory usage column a bit wider (it was cut off.)

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
@smith smith deleted the nls/avg-table-headings branch March 2, 2021 17:21
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.12.0 v8.0.0
Projects
None yet
4 participants