Skip to content

Commit

Permalink
[ML] Rename failed transactions tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Aug 13, 2021
1 parent 94aa4f9 commit 14c229d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { ErrorCorrelations } from '../correlations/error_correlations';

import type { TabContentProps } from './types';

function FailedTransactionsRateTab({}: TabContentProps) {
function FailedTransactionsCorrelationsTab({}: TabContentProps) {
const license = useLicenseContext();

const hasActivePlatinumLicense = isActivePlatinumLicense(license);
Expand All @@ -46,41 +46,41 @@ function FailedTransactionsRateTab({}: TabContentProps) {
) : (
<LicensePrompt
text={i18n.translate(
'xpack.apm.failedTransactionsRate.licenseCheckText',
'xpack.apm.failedTransactionsCorrelations.licenseCheckText',
{
defaultMessage: `To use the failed transactions rate feature, you must be subscribed to an Elastic Platinum license.`,
defaultMessage: `To use the failed transactions correlations feature, you must be subscribed to an Elastic Platinum license.`,
}
)}
/>
);
}

export const failedTransactionsRateTab = {
dataTestSubj: 'apmFailedTransactionsRateTabButton',
key: 'failedTransactionsRate',
export const failedTransactionsCorrelationsTab = {
dataTestSubj: 'apmFailedTransactionsCorrelationsTabButton',
key: 'failedTransactionsCorrelations',
label: (
<>
{i18n.translate(
'xpack.apm.transactionDetails.tabs.failedTransactionsRateLabel',
'xpack.apm.transactionDetails.tabs.failedTransactionsCorrelationsLabel',
{
defaultMessage: 'Failed transaction rate',
defaultMessage: 'Failed transaction correlations',
}
)}{' '}
<EuiBetaBadge
label={i18n.translate(
'xpack.apm.transactionDetails.tabs.failedTransactionsRateBetaLabel',
'xpack.apm.transactionDetails.tabs.failedTransactionsCorrelationsBetaLabel',
{
defaultMessage: 'Beta',
}
)}
title={i18n.translate(
'xpack.apm.transactionDetails.tabs.failedTransactionsRateBetaTitle',
'xpack.apm.transactionDetails.tabs.failedTransactionsCorrelationsBetaTitle',
{
defaultMessage: 'Failed transaction rate',
}
)}
tooltipContent={i18n.translate(
'xpack.apm.transactionDetails.tabs.failedTransactionsRateBetaDescription',
'xpack.apm.transactionDetails.tabs.failedTransactionsCorrelationsBetaDescription',
{
defaultMessage:
'Failed transaction rate is not GA. Please help us by reporting any bugs.',
Expand All @@ -90,5 +90,5 @@ export const failedTransactionsRateTab = {
/>
</>
),
component: FailedTransactionsRateTab,
component: FailedTransactionsCorrelationsTab,
};
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ import { useTransactionTraceSamplesFetcher } from '../../../hooks/use_transactio
import { HeightRetainer } from '../../shared/HeightRetainer';
import { fromQuery, toQuery } from '../../shared/Links/url_helpers';

import { failedTransactionsRateTab } from './failed_transactions_rate_tab';
import { failedTransactionsCorrelationsTab } from './failed_transactions_correlations_tab';
import { latencyCorrelationsTab } from './latency_correlations_tab';
import { traceSamplesTab } from './trace_samples_tab';

const tabs = [
traceSamplesTab,
latencyCorrelationsTab,
failedTransactionsRateTab,
failedTransactionsCorrelationsTab,
];

export function TransactionDetailsTabs() {
Expand Down

0 comments on commit 14c229d

Please sign in to comment.