Skip to content

Commit

Permalink
Merge branch 'master' into feature/index-templates-runtime-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Sep 21, 2020
2 parents 90e1445 + 0f6c35c commit 9af93bc
Show file tree
Hide file tree
Showing 29 changed files with 59 additions and 1,639 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ export const generalSettings: RawSettingDefinition[] = [
key: 'transaction_max_spans',
type: 'integer',
min: 0,
max: 32000,
defaultValue: '500',
label: i18n.translate('xpack.apm.agentConfig.transactionMaxSpans.label', {
defaultMessage: 'Transaction max spans',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import React from 'react';
import { EuiButton, EuiCallOut, EuiSpacer, EuiText } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { useApmPluginContext } from '../../../hooks/useApmPluginContext';

export function ClientSideMonitoringCallout() {
const { core } = useApmPluginContext();
const clientSideMonitoringHref = core.http.basePath.prepend(`/app/csm`);

return (
<EuiCallOut
iconType="cheer"
title={i18n.translate(
'xpack.apm.transactionOverview.clientSideMonitoring.calloutTitle',
{ defaultMessage: 'Introducing: Client Side Monitoring' }
)}
>
<EuiText>
{i18n.translate(
'xpack.apm.transactionOverview.clientSideMonitoring.calloutText',
{
defaultMessage:
'We are beyond excited to introduce a new experience for analyzing the user experience metrics specifically for your RUM services. It provides insights into the core vitals and visitor breakdown by browser and location. The app is always available in the left sidebar among the other Observability views.',
}
)}
</EuiText>
<EuiSpacer size="m" />
<EuiButton href={clientSideMonitoringHref}>
{i18n.translate(
'xpack.apm.transactionOverview.clientSideMonitoring.linkLabel',
{ defaultMessage: 'Take me there' }
)}
</EuiButton>
</EuiCallOut>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ import { LocalUIFilters } from '../../shared/LocalUIFilters';
import { TransactionTypeFilter } from '../../shared/LocalUIFilters/TransactionTypeFilter';
import { TransactionList } from './TransactionList';
import { useRedirect } from './useRedirect';
import { TRANSACTION_PAGE_LOAD } from '../../../../common/transaction_types';
import { ClientSideMonitoringCallout } from './ClientSideMonitoringCallout';

function getRedirectLocation({
urlParams,
Expand Down Expand Up @@ -125,6 +127,12 @@ export function TransactionOverview({ serviceName }: TransactionOverviewProps) {
</LocalUIFilters>
</EuiFlexItem>
<EuiFlexItem grow={7}>
{transactionType === TRANSACTION_PAGE_LOAD && (
<>
<ClientSideMonitoringCallout />
<EuiSpacer size="s" />
</>
)}
<ChartsSyncContextProvider>
<TransactionCharts
charts={transactionCharts}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9af93bc

Please sign in to comment.