elastic/kibana

[APM] Add more info to the "Number of items in this trace exceed what is displayed" (xpack.apm.waterfall.exceedsMax) EuiCallOut

Ouverte

#118 282 ouverte le 11 nov. 2021

 (10 commentaires) (0 réaction) (0 personne assignée)TypeScript (8 021 forks)batch import
Team:obs-ux-infra_services - DEPRECATEDapm:waterfallenhancementgood first issuestale

Métriques du dépôt

Stars
 (19 065 étoiles)
Métriques de merge PR
 (Merge moyen 1j 16h) (999 PRs mergées en 30 j)

Description

Kibana version

7.15.1

Steps to Reproduce

  1. set up a separate deployment's kibana to report into APM
  2. pull up a trace for alerting:monitoring_alert_jvm_memory_usage (it's a taskManager run type)
  3. check the trace sample, especially after some time has passed

Expected Behavior

When the number of items exceeds the setting xpack.apm.waterfall.exceedsMax we should display the message:

Number of items in this trace exceed the maximum configured value (100). Please configure xpack.apm.ui.maxTraceItems to increase this value. See docs for more details

Actual Behavior

Get a number of items exceed message like this:

Screen Shot 2021-11-11 at 13 15 56

To work around this I ended up just browsing the kibana code to find the setting (maxTraceItems). Once I had that I was able to google my way to https://www.elastic.co/guide/en/kibana/current/apm-settings-in-kibana.html

Implementation details

https://github.com/elastic/kibana/blob/main/x-pack/plugins/apm/server/routes/traces/get_trace_items.ts#L77

Guide contributeur