-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Fix UI inconsistencies in APM Failed transaction correlations (#…
…109187) (#109626) - Show the same empty state in the correlations table - Add "Correlations" title above the table - Add EuiSpacer between the sections before and after progress - Update the copy within the beta badge title=Failed transaction correlations description=Failed transaction correlations is not GA... - Remove s size from the beta badge - Move the help popover to the top of the panel (similar to the Latency correlations tab) - Move the Cancel/Refresh option to the right of the progress bar (similar to the Latency correlations tab) - When the correlation job is running the correlations tab should show a loading state similar to the latency correlations table - Indicate in the table headers Score is sorted by default - Add sortability to both Latency and failed transactions correlations table - Refactor to prevent duplicate code/components like Log, progress bar - Fix alignments of the tab content header (previously navigating from one Trace samples tab to Latency correlation tabs will cause a minor jump in the header, or the titles within the same tab were not the same size ) - Remove the event.outcome as a field candidate (because event.outcome: failure would always be significant in this case) - Shrink the column width for impact (previously it was at 116px) - Added badge for High, medium, low [APM] Correlations: Show impact levels (high, medium, low) as colored badges indicating their severity - Fix license prompt text - Functional tests for the new tab - Make the p value & error rate columns visible only when esInspect mode is enabled Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
- Loading branch information
1 parent
4a14a94
commit 418e449
Showing
26 changed files
with
1,074 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
x-pack/plugins/apm/public/components/app/correlations/correlations_log.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { EuiAccordion, EuiCode, EuiPanel } from '@elastic/eui'; | ||
import React from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { asAbsoluteDateTime } from '../../../../common/utils/formatters'; | ||
|
||
interface Props { | ||
logMessages: string[]; | ||
} | ||
export function CorrelationsLog({ logMessages }: Props) { | ||
return ( | ||
<EuiAccordion | ||
id="apmCorrelationsLogAccordion" | ||
buttonContent={i18n.translate('xpack.apm.correlations.logButtonContent', { | ||
defaultMessage: 'Log', | ||
})} | ||
> | ||
<EuiPanel color="subdued"> | ||
{logMessages.map((logMessage, i) => { | ||
const [timestamp, message] = logMessage.split(': '); | ||
return ( | ||
<p key={i}> | ||
<small> | ||
<EuiCode>{asAbsoluteDateTime(timestamp)}</EuiCode> {message} | ||
</small> | ||
</p> | ||
); | ||
})} | ||
</EuiPanel> | ||
</EuiAccordion> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
x-pack/plugins/apm/public/components/app/correlations/cross_cluster_search_warning.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { EuiCallOut } from '@elastic/eui'; | ||
import React from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
|
||
export function CrossClusterSearchCompatibilityWarning({ | ||
version, | ||
}: { | ||
version: string; | ||
}) { | ||
return ( | ||
<EuiCallOut | ||
title={i18n.translate('xpack.apm.correlations.ccsWarningCalloutTitle', { | ||
defaultMessage: 'Cross-cluster search compatibility', | ||
})} | ||
color="warning" | ||
> | ||
<p> | ||
{i18n.translate('xpack.apm.correlations.ccsWarningCalloutBody', { | ||
defaultMessage: | ||
'Data for the correlation analysis could not be fully retrieved. This feature is supported only for {version} and later versions.', | ||
values: { version }, | ||
})} | ||
</p> | ||
</EuiCallOut> | ||
); | ||
} |
49 changes: 49 additions & 0 deletions
49
x-pack/plugins/apm/public/components/app/correlations/empty_state_prompt.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { EuiEmptyPrompt, EuiSpacer, EuiText } from '@elastic/eui'; | ||
import React from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
|
||
export function CorrelationsEmptyStatePrompt() { | ||
return ( | ||
<> | ||
<EuiSpacer size="m" /> | ||
<EuiEmptyPrompt | ||
iconType="minusInCircle" | ||
title={ | ||
<EuiText size="s"> | ||
<h2> | ||
{i18n.translate('xpack.apm.correlations.noCorrelationsTitle', { | ||
defaultMessage: 'No significant correlations', | ||
})} | ||
</h2> | ||
</EuiText> | ||
} | ||
body={ | ||
<> | ||
<EuiText size="s"> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.apm.correlations.noCorrelationsTextLine1" | ||
defaultMessage="Correlations will only be identified if they have significant impact." | ||
/> | ||
</p> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.apm.correlations.noCorrelationsTextLine2" | ||
defaultMessage="Try selecting another time range or remove any added filter." | ||
/> | ||
</p> | ||
</EuiText> | ||
</> | ||
} | ||
/> | ||
</> | ||
); | ||
} |
Oops, something went wrong.