mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[APM] NP Migration - Moves plugin server files out of legacy (#57532)
* Closes @56832 Migrates uses of the saved objects client to the internal and context scoped clients exposed in the new platform core setup * moves apm server, common, and typings dirs to the new plugin directory * fixes path imports and type errors * fixes some lint errors * fixes CI failure. Use internal saved objects client like before. * uses the context-scoped saved objects client for saving runtime APM indices, and uses the internal saved objects client when creating apm index pattern, so that any user who navigates to apm can trigger it * fixes the type check error by updating import paths * renamed files and directories to snake_case to pass scripts/check_file_casing * rebase fixes and commit filename case changes * moves get_indices_privileges.ts out of legacy path
This commit is contained in:
parent
ef1565347c
commit
96a0aa0266
367 changed files with 1229 additions and 937 deletions
|
@ -11,7 +11,6 @@ import { APMPluginContract } from '../../../plugins/apm/server';
|
|||
import { LegacyPluginInitializer } from '../../../../src/legacy/types';
|
||||
import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/utils';
|
||||
import mappings from './mappings.json';
|
||||
import { makeApmUsageCollector } from './server/lib/apm_telemetry';
|
||||
|
||||
export const apm: LegacyPluginInitializer = kibana => {
|
||||
return new kibana.Plugin({
|
||||
|
@ -108,11 +107,9 @@ export const apm: LegacyPluginInitializer = kibana => {
|
|||
}
|
||||
}
|
||||
});
|
||||
const { usageCollection } = server.newPlatform.setup.plugins;
|
||||
makeApmUsageCollector(usageCollection, server);
|
||||
|
||||
const apmPlugin = server.newPlatform.setup.plugins
|
||||
.apm as APMPluginContract;
|
||||
|
||||
apmPlugin.registerLegacyAPI({ server });
|
||||
}
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { isEmpty } from 'lodash';
|
||||
import { APMError } from '../../../../../typings/es_schemas/ui/APMError';
|
||||
import { APMError } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
|
||||
export interface ErrorTab {
|
||||
key: 'log_stacktrace' | 'exception_stacktrace' | 'metadata';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import React from 'react';
|
||||
import { EuiTitle } from '@elastic/eui';
|
||||
import { Exception } from '../../../../../typings/es_schemas/raw/ErrorRaw';
|
||||
import { Exception } from '../../../../../../../../plugins/apm/typings/es_schemas/raw/error_raw';
|
||||
import { Stacktrace } from '../../../shared/Stacktrace';
|
||||
import { CauseStacktrace } from '../../../shared/Stacktrace/CauseStacktrace';
|
||||
|
||||
|
|
|
@ -19,8 +19,9 @@ import { Location } from 'history';
|
|||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { first } from 'lodash';
|
||||
import { ErrorGroupAPIResponse } from '../../../../../server/lib/errors/get_error_group';
|
||||
import { APMError } from '../../../../../typings/es_schemas/ui/APMError';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { ErrorGroupAPIResponse } from '../../../../../../../../plugins/apm/server/lib/errors/get_error_group';
|
||||
import { APMError } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import { IUrlParams } from '../../../../context/UrlParamsContext/types';
|
||||
import { px, unit, units } from '../../../../style/variables';
|
||||
import { DiscoverErrorLink } from '../../../shared/Links/DiscoverLinks/DiscoverErrorLink';
|
||||
|
|
|
@ -17,7 +17,7 @@ import theme from '@elastic/eui/dist/eui_theme_light.json';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React, { Fragment } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../common/i18n';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../plugins/apm/common/i18n';
|
||||
import { useFetcher } from '../../../hooks/useFetcher';
|
||||
import { fontFamilyCode, fontSizes, px, units } from '../../../style/variables';
|
||||
import { ApmHeader } from '../../shared/ApmHeader';
|
||||
|
|
|
@ -9,8 +9,9 @@ import numeral from '@elastic/numeral';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n';
|
||||
import { ErrorGroupListAPIResponse } from '../../../../../server/lib/errors/get_error_groups';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../../plugins/apm/common/i18n';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { ErrorGroupListAPIResponse } from '../../../../../../../../plugins/apm/server/lib/errors/get_error_groups';
|
||||
import {
|
||||
fontFamilyCode,
|
||||
fontSizes,
|
||||
|
|
|
@ -18,7 +18,7 @@ import { ErrorDistribution } from '../ErrorGroupDetails/Distribution';
|
|||
import { ErrorGroupList } from './List';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
import { useTrackPageview } from '../../../../../../../plugins/observability/public';
|
||||
import { PROJECTION } from '../../../../common/projections/typings';
|
||||
import { PROJECTION } from '../../../../../../../plugins/apm/common/projections/typings';
|
||||
import { LocalUIFilters } from '../../shared/LocalUIFilters';
|
||||
|
||||
const ErrorGroupOverview: React.FC = () => {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { Redirect, RouteComponentProps } from 'react-router-dom';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../../../../common/service_nodes';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../../../../../../../plugins/apm/common/service_nodes';
|
||||
import { ErrorGroupDetails } from '../../ErrorGroupDetails';
|
||||
import { ServiceDetails } from '../../ServiceDetails';
|
||||
import { TransactionDetails } from '../../TransactionDetails';
|
||||
|
@ -20,7 +20,7 @@ import { ApmIndices } from '../../Settings/ApmIndices';
|
|||
import { toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { ServiceNodeMetrics } from '../../ServiceNodeMetrics';
|
||||
import { resolveUrlParams } from '../../../../context/UrlParamsContext/resolveUrlParams';
|
||||
import { UNIDENTIFIED_SERVICE_NODES_LABEL } from '../../../../../common/i18n';
|
||||
import { UNIDENTIFIED_SERVICE_NODES_LABEL } from '../../../../../../../../plugins/apm/common/i18n';
|
||||
import { TraceLink } from '../../TraceLink';
|
||||
import { CustomizeUI } from '../../Settings/CustomizeUI';
|
||||
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
import { EuiTabs } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { isJavaAgentName, isRumAgentName } from '../../../../common/agent_name';
|
||||
import {
|
||||
isJavaAgentName,
|
||||
isRumAgentName
|
||||
} from '../../../../../../../plugins/apm/common/agent_name';
|
||||
import { useAgentName } from '../../../hooks/useAgentName';
|
||||
import { useApmPluginContext } from '../../../hooks/useApmPluginContext';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
|
|
|
@ -17,7 +17,7 @@ import {
|
|||
ERROR_LOG_MESSAGE,
|
||||
PROCESSOR_EVENT,
|
||||
SERVICE_NAME
|
||||
} from '../../../../../common/elasticsearch_fieldnames';
|
||||
} from '../../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { createWatch } from '../../../../services/rest/watcher';
|
||||
|
||||
function getSlackPathUrl(slackUrl?: string) {
|
||||
|
|
|
@ -15,7 +15,8 @@ import { i18n } from '@kbn/i18n';
|
|||
import { isNumber } from 'lodash';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { ServiceNodeMetrics } from '../../../../../server/lib/service_map/get_service_map_service_node_info';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { ServiceNodeMetrics } from '../../../../../../../../plugins/apm/server/lib/service_map/get_service_map_service_node_info';
|
||||
import {
|
||||
asDuration,
|
||||
asPercent,
|
||||
|
|
|
@ -5,8 +5,12 @@
|
|||
*/
|
||||
import { ValuesType } from 'utility-types';
|
||||
import { sortBy, isEqual } from 'lodash';
|
||||
import { Connection, ConnectionNode } from '../../../../common/service_map';
|
||||
import { ServiceMapAPIResponse } from '../../../../server/lib/service_map/get_service_map';
|
||||
import {
|
||||
Connection,
|
||||
ConnectionNode
|
||||
} from '../../../../../../../plugins/apm/common/service_map';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { ServiceMapAPIResponse } from '../../../../../../../plugins/apm/server/lib/service_map/get_service_map';
|
||||
import { getAPMHref } from '../../shared/Links/apm/APMLink';
|
||||
|
||||
function getConnectionNodeId(node: ConnectionNode): string {
|
||||
|
|
|
@ -17,7 +17,8 @@ import React, {
|
|||
useState
|
||||
} from 'react';
|
||||
import { toMountPoint } from '../../../../../../../../src/plugins/kibana_react/public';
|
||||
import { ServiceMapAPIResponse } from '../../../../server/lib/service_map/get_service_map';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { ServiceMapAPIResponse } from '../../../../../../../plugins/apm/server/lib/service_map/get_service_map';
|
||||
import { useApmPluginContext } from '../../../hooks/useApmPluginContext';
|
||||
import { useCallApmApi } from '../../../hooks/useCallApmApi';
|
||||
import { useDeepObjectIdentity } from '../../../hooks/useDeepObjectIdentity';
|
||||
|
|
|
@ -16,7 +16,7 @@ import { useServiceMetricCharts } from '../../../hooks/useServiceMetricCharts';
|
|||
import { MetricsChart } from '../../shared/charts/MetricsChart';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
import { ChartsSyncContextProvider } from '../../../context/ChartsSyncContext';
|
||||
import { PROJECTION } from '../../../../common/projections/typings';
|
||||
import { PROJECTION } from '../../../../../../../plugins/apm/common/projections/typings';
|
||||
import { LocalUIFilters } from '../../shared/LocalUIFilters';
|
||||
|
||||
interface ServiceMetricsProps {
|
||||
|
|
|
@ -20,7 +20,7 @@ import React from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import styled from 'styled-components';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../../../common/service_nodes';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../../../../../../plugins/apm/common/service_nodes';
|
||||
import { ApmHeader } from '../../shared/ApmHeader';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
import { useAgentName } from '../../../hooks/useAgentName';
|
||||
|
|
|
@ -13,9 +13,9 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import styled from 'styled-components';
|
||||
import { UNIDENTIFIED_SERVICE_NODES_LABEL } from '../../../../common/i18n';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../../../common/service_nodes';
|
||||
import { PROJECTION } from '../../../../common/projections/typings';
|
||||
import { UNIDENTIFIED_SERVICE_NODES_LABEL } from '../../../../../../../plugins/apm/common/i18n';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../../../../../../plugins/apm/common/service_nodes';
|
||||
import { PROJECTION } from '../../../../../../../plugins/apm/common/projections/typings';
|
||||
import { LocalUIFilters } from '../../shared/LocalUIFilters';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
import { ManagedTable, ITableColumn } from '../../shared/ManagedTable';
|
||||
|
|
|
@ -8,8 +8,9 @@ import { EuiToolTip } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { ServiceListAPIResponse } from '../../../../../server/lib/services/get_services';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { ServiceListAPIResponse } from '../../../../../../../../plugins/apm/server/lib/services/get_services';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../../plugins/apm/common/i18n';
|
||||
import { fontSizes, truncate } from '../../../../style/variables';
|
||||
import { asDecimal, convertTo } from '../../../../utils/formatters';
|
||||
import { ManagedTable } from '../../../shared/ManagedTable';
|
||||
|
|
|
@ -15,7 +15,7 @@ import { NoServicesMessage } from './NoServicesMessage';
|
|||
import { ServiceList } from './ServiceList';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
import { useTrackPageview } from '../../../../../../../plugins/observability/public';
|
||||
import { PROJECTION } from '../../../../common/projections/typings';
|
||||
import { PROJECTION } from '../../../../../../../plugins/apm/common/projections/typings';
|
||||
import { LocalUIFilters } from '../../shared/LocalUIFilters';
|
||||
import { useApmPluginContext } from '../../../hooks/useApmPluginContext';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { NotificationsStart } from 'kibana/public';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { useCallApmApi } from '../../../../../hooks/useCallApmApi';
|
||||
import { Config } from '../index';
|
||||
import { getOptionLabel } from '../../../../../../common/agent_configuration_constants';
|
||||
import { getOptionLabel } from '../../../../../../../../../plugins/apm/common/agent_configuration_constants';
|
||||
import { APMClient } from '../../../../../services/rest/createCallApmApi';
|
||||
import { useApmPluginContext } from '../../../../../hooks/useApmPluginContext';
|
||||
|
||||
|
|
|
@ -23,15 +23,15 @@ import React, { useState } from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { isRight } from 'fp-ts/lib/Either';
|
||||
import { useCallApmApi } from '../../../../../hooks/useCallApmApi';
|
||||
import { transactionSampleRateRt } from '../../../../../../common/runtime_types/transaction_sample_rate_rt';
|
||||
import { transactionSampleRateRt } from '../../../../../../../../../plugins/apm/common/runtime_types/transaction_sample_rate_rt';
|
||||
import { Config } from '../index';
|
||||
import { SettingsSection } from './SettingsSection';
|
||||
import { ServiceForm } from '../../../../shared/ServiceForm';
|
||||
import { DeleteButton } from './DeleteButton';
|
||||
import { transactionMaxSpansRt } from '../../../../../../common/runtime_types/transaction_max_spans_rt';
|
||||
import { transactionMaxSpansRt } from '../../../../../../../../../plugins/apm/common/runtime_types/transaction_max_spans_rt';
|
||||
import { useFetcher } from '../../../../../hooks/useFetcher';
|
||||
import { isRumAgentName } from '../../../../../../common/agent_name';
|
||||
import { ALL_OPTION_VALUE } from '../../../../../../common/agent_configuration_constants';
|
||||
import { isRumAgentName } from '../../../../../../../../../plugins/apm/common/agent_name';
|
||||
import { ALL_OPTION_VALUE } from '../../../../../../../../../plugins/apm/common/agent_configuration_constants';
|
||||
import { saveConfig } from './saveConfig';
|
||||
import { useApmPluginContext } from '../../../../../hooks/useApmPluginContext';
|
||||
import { useUiTracker } from '../../../../../../../../../plugins/observability/public';
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { NotificationsStart } from 'kibana/public';
|
||||
import { APMClient } from '../../../../../services/rest/createCallApmApi';
|
||||
import { isRumAgentName } from '../../../../../../common/agent_name';
|
||||
import { isRumAgentName } from '../../../../../../../../../plugins/apm/common/agent_name';
|
||||
import {
|
||||
getOptionLabel,
|
||||
omitAllOption
|
||||
} from '../../../../../../common/agent_configuration_constants';
|
||||
} from '../../../../../../../../../plugins/apm/common/agent_configuration_constants';
|
||||
import { UiTracker } from '../../../../../../../../../plugins/observability/public';
|
||||
|
||||
interface Settings {
|
||||
|
|
|
@ -18,11 +18,12 @@ import theme from '@elastic/eui/dist/eui_theme_light.json';
|
|||
import { FETCH_STATUS } from '../../../../hooks/useFetcher';
|
||||
import { ITableColumn, ManagedTable } from '../../../shared/ManagedTable';
|
||||
import { LoadingStatePrompt } from '../../../shared/LoadingStatePrompt';
|
||||
import { AgentConfigurationListAPIResponse } from '../../../../../server/lib/settings/agent_configuration/list_configurations';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { AgentConfigurationListAPIResponse } from '../../../../../../../../plugins/apm/server/lib/settings/agent_configuration/list_configurations';
|
||||
import { Config } from '.';
|
||||
import { TimestampTooltip } from '../../../shared/TimestampTooltip';
|
||||
import { px, units } from '../../../../style/variables';
|
||||
import { getOptionLabel } from '../../../../../common/agent_configuration_constants';
|
||||
import { getOptionLabel } from '../../../../../../../../plugins/apm/common/agent_configuration_constants';
|
||||
|
||||
export function AgentConfigurationList({
|
||||
status,
|
||||
|
|
|
@ -16,7 +16,8 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { isEmpty } from 'lodash';
|
||||
import { useFetcher } from '../../../../hooks/useFetcher';
|
||||
import { AgentConfigurationListAPIResponse } from '../../../../../server/lib/settings/agent_configuration/list_configurations';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { AgentConfigurationListAPIResponse } from '../../../../../../../../plugins/apm/server/lib/settings/agent_configuration/list_configurations';
|
||||
import { AgentConfigurationList } from './AgentConfigurationList';
|
||||
import { useTrackPageview } from '../../../../../../../../plugins/observability/public';
|
||||
import { AddEditFlyout } from './AddEditFlyout';
|
||||
|
|
|
@ -9,8 +9,8 @@ import React from 'react';
|
|||
import { Redirect } from 'react-router-dom';
|
||||
import styled from 'styled-components';
|
||||
import url from 'url';
|
||||
import { TRACE_ID } from '../../../../common/elasticsearch_fieldnames';
|
||||
import { Transaction } from '../../../../typings/es_schemas/ui/Transaction';
|
||||
import { TRACE_ID } from '../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { Transaction } from '../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { FETCH_STATUS, useFetcher } from '../../../hooks/useFetcher';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@ import { EuiIcon, EuiToolTip } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { ITransactionGroup } from '../../../../server/lib/transaction_groups/transform';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { ITransactionGroup } from '../../../../../../../plugins/apm/server/lib/transaction_groups/transform';
|
||||
import { fontSizes, truncate } from '../../../style/variables';
|
||||
import { convertTo } from '../../../utils/formatters';
|
||||
import { EmptyMessage } from '../../shared/EmptyMessage';
|
||||
|
|
|
@ -11,7 +11,7 @@ import { TraceList } from './TraceList';
|
|||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
import { useTrackPageview } from '../../../../../../../plugins/observability/public';
|
||||
import { LocalUIFilters } from '../../shared/LocalUIFilters';
|
||||
import { PROJECTION } from '../../../../common/projections/typings';
|
||||
import { PROJECTION } from '../../../../../../../plugins/apm/common/projections/typings';
|
||||
|
||||
export function TraceOverview() {
|
||||
const { urlParams, uiFilters } = useUrlParams();
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
*/
|
||||
|
||||
import { getFormattedBuckets } from '../index';
|
||||
import { IBucket } from '../../../../../../server/lib/transactions/distribution/get_buckets/transform';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { IBucket } from '../../../../../../../../../plugins/apm/server/lib/transactions/distribution/get_buckets/transform';
|
||||
|
||||
describe('Distribution', () => {
|
||||
it('getFormattedBuckets', () => {
|
||||
|
|
|
@ -9,8 +9,10 @@ import { i18n } from '@kbn/i18n';
|
|||
import d3 from 'd3';
|
||||
import React, { FunctionComponent, useCallback } from 'react';
|
||||
import { isEmpty } from 'lodash';
|
||||
import { TransactionDistributionAPIResponse } from '../../../../../server/lib/transactions/distribution';
|
||||
import { IBucket } from '../../../../../server/lib/transactions/distribution/get_buckets/transform';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { TransactionDistributionAPIResponse } from '../../../../../../../../plugins/apm/server/lib/transactions/distribution';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { IBucket } from '../../../../../../../../plugins/apm/server/lib/transactions/distribution/get_buckets/transform';
|
||||
import { IUrlParams } from '../../../../context/UrlParamsContext/types';
|
||||
import { getDurationFormatter } from '../../../../utils/formatters';
|
||||
// @ts-ignore
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import React from 'react';
|
||||
import { EuiButton, EuiFlexItem, EuiToolTip } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { Transaction as ITransaction } from '../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction as ITransaction } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { TransactionDetailLink } from '../../../shared/Links/apm/TransactionDetailLink';
|
||||
import { IWaterfall } from './WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import { EuiSpacer, EuiTab, EuiTabs } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { Location } from 'history';
|
||||
import React from 'react';
|
||||
import { Transaction } from '../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { IUrlParams } from '../../../../context/UrlParamsContext/types';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { history } from '../../../../utils/history';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { getAgentMarks } from '../get_agent_marks';
|
||||
|
||||
describe('getAgentMarks', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { sortBy } from 'lodash';
|
||||
import { Transaction } from '../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { Mark } from '.';
|
||||
|
||||
// Extends Mark without adding new properties to it.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
import { isEmpty } from 'lodash';
|
||||
import { ErrorRaw } from '../../../../../../../typings/es_schemas/raw/ErrorRaw';
|
||||
import { ErrorRaw } from '../../../../../../../../../../plugins/apm/typings/es_schemas/raw/error_raw';
|
||||
import {
|
||||
IWaterfallError,
|
||||
IServiceColors
|
||||
|
|
|
@ -9,8 +9,8 @@ import React from 'react';
|
|||
import {
|
||||
SERVICE_NAME,
|
||||
TRANSACTION_NAME
|
||||
} from '../../../../../../../common/elasticsearch_fieldnames';
|
||||
import { Transaction } from '../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
} from '../../../../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { Transaction } from '../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { TransactionDetailLink } from '../../../../../shared/Links/apm/TransactionDetailLink';
|
||||
import { StickyProperties } from '../../../../../shared/StickyProperties';
|
||||
import { TransactionOverviewLink } from '../../../../../shared/Links/apm/TransactionOverviewLink';
|
||||
|
|
|
@ -18,7 +18,7 @@ import SyntaxHighlighter, {
|
|||
// @ts-ignore
|
||||
import { xcode } from 'react-syntax-highlighter/dist/styles';
|
||||
import styled from 'styled-components';
|
||||
import { Span } from '../../../../../../../../typings/es_schemas/ui/Span';
|
||||
import { Span } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import {
|
||||
borderRadius,
|
||||
fontFamilyCode,
|
||||
|
|
|
@ -17,7 +17,7 @@ import {
|
|||
unit,
|
||||
units
|
||||
} from '../../../../../../../style/variables';
|
||||
import { Span } from '../../../../../../../../typings/es_schemas/ui/Span';
|
||||
import { Span } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
|
||||
const ContextUrl = styled.div`
|
||||
padding: ${px(units.half)} ${px(unit)};
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import {
|
||||
SPAN_NAME,
|
||||
TRANSACTION_NAME,
|
||||
SERVICE_NAME
|
||||
} from '../../../../../../../../common/elasticsearch_fieldnames';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../../common/i18n';
|
||||
import { Span } from '../../../../../../../../typings/es_schemas/ui/Span';
|
||||
} from '../../../../../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../../../../../plugins/apm/common/i18n';
|
||||
import { Span } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import { StickyProperties } from '../../../../../../shared/StickyProperties';
|
||||
import { TransactionOverviewLink } from '../../../../../../shared/Links/apm/TransactionOverviewLink';
|
||||
import { TransactionDetailLink } from '../../../../../../shared/Links/apm/TransactionDetailLink';
|
||||
|
|
|
@ -25,8 +25,8 @@ import { px, units } from '../../../../../../../style/variables';
|
|||
import { Summary } from '../../../../../../shared/Summary';
|
||||
import { TimestampTooltip } from '../../../../../../shared/TimestampTooltip';
|
||||
import { DurationSummaryItem } from '../../../../../../shared/Summary/DurationSummaryItem';
|
||||
import { Span } from '../../../../../../../../typings/es_schemas/ui/Span';
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Span } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import { Transaction } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { DiscoverSpanLink } from '../../../../../../shared/Links/DiscoverLinks/DiscoverSpanLink';
|
||||
import { Stacktrace } from '../../../../../../shared/Stacktrace';
|
||||
import { ResponsiveFlyout } from '../ResponsiveFlyout';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { EuiCallOut, EuiHorizontalRule } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { ElasticDocsLink } from '../../../../../../shared/Links/ElasticDocsLink';
|
||||
|
||||
export function DroppedSpansWarning({
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { TransactionActionMenu } from '../../../../../../shared/TransactionActionMenu/TransactionActionMenu';
|
||||
import { TransactionSummary } from '../../../../../../shared/Summary/TransactionSummary';
|
||||
import { FlyoutTopLevelProperties } from '../FlyoutTopLevelProperties';
|
||||
|
|
|
@ -10,13 +10,13 @@ import styled from 'styled-components';
|
|||
import { EuiIcon, EuiText, EuiTitle, EuiToolTip } from '@elastic/eui';
|
||||
import theme from '@elastic/eui/dist/eui_theme_light.json';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { isRumAgentName } from '../../../../../../../common/agent_name';
|
||||
import { isRumAgentName } from '../../../../../../../../../../plugins/apm/common/agent_name';
|
||||
import { px, unit, units } from '../../../../../../style/variables';
|
||||
import { asDuration } from '../../../../../../utils/formatters';
|
||||
import { ErrorCount } from '../../ErrorCount';
|
||||
import { IWaterfallItem } from './waterfall_helpers/waterfall_helpers';
|
||||
import { ErrorOverviewLink } from '../../../../../shared/Links/apm/ErrorOverviewLink';
|
||||
import { TRACE_ID } from '../../../../../../../common/elasticsearch_fieldnames';
|
||||
import { TRACE_ID } from '../../../../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { SyncBadge } from './SyncBadge';
|
||||
|
||||
type ItemType = 'transaction' | 'span' | 'error';
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
import { groupBy } from 'lodash';
|
||||
import { Span } from '../../../../../../../../typings/es_schemas/ui/Span';
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Span } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import { Transaction } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import {
|
||||
getClockSkew,
|
||||
getOrderedWaterfallItems,
|
||||
|
@ -15,7 +15,7 @@ import {
|
|||
IWaterfallTransaction,
|
||||
IWaterfallError
|
||||
} from './waterfall_helpers';
|
||||
import { APMError } from '../../../../../../../../typings/es_schemas/ui/APMError';
|
||||
import { APMError } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
|
||||
describe('waterfall_helpers', () => {
|
||||
describe('getWaterfall', () => {
|
||||
|
|
|
@ -15,10 +15,11 @@ import {
|
|||
uniq,
|
||||
zipObject
|
||||
} from 'lodash';
|
||||
import { TraceAPIResponse } from '../../../../../../../../server/lib/traces/get_trace';
|
||||
import { APMError } from '../../../../../../../../typings/es_schemas/ui/APMError';
|
||||
import { Span } from '../../../../../../../../typings/es_schemas/ui/Span';
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/Transaction';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { TraceAPIResponse } from '../../../../../../../../../../../plugins/apm/server/lib/traces/get_trace';
|
||||
import { APMError } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import { Span } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import { Transaction } from '../../../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
|
||||
interface IWaterfallGroup {
|
||||
[key: string]: IWaterfallItem[];
|
||||
|
|
|
@ -16,7 +16,8 @@ import {
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { Location } from 'history';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { IBucket } from '../../../../../server/lib/transactions/distribution/get_buckets/transform';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { IBucket } from '../../../../../../../../plugins/apm/server/lib/transactions/distribution/get_buckets/transform';
|
||||
import { IUrlParams } from '../../../../context/UrlParamsContext/types';
|
||||
import { history } from '../../../../utils/history';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
|
|
|
@ -27,7 +27,7 @@ import { FETCH_STATUS } from '../../../hooks/useFetcher';
|
|||
import { TransactionBreakdown } from '../../shared/TransactionBreakdown';
|
||||
import { ChartsSyncContextProvider } from '../../../context/ChartsSyncContext';
|
||||
import { useTrackPageview } from '../../../../../../../plugins/observability/public';
|
||||
import { PROJECTION } from '../../../../common/projections/typings';
|
||||
import { PROJECTION } from '../../../../../../../plugins/apm/common/projections/typings';
|
||||
import { LocalUIFilters } from '../../shared/LocalUIFilters';
|
||||
import { HeightRetainer } from '../../shared/HeightRetainer';
|
||||
|
||||
|
|
|
@ -8,8 +8,9 @@ import { EuiIcon, EuiToolTip } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n';
|
||||
import { ITransactionGroup } from '../../../../../server/lib/transaction_groups/transform';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../../plugins/apm/common/i18n';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { ITransactionGroup } from '../../../../../../../../plugins/apm/server/lib/transaction_groups/transform';
|
||||
import { fontFamilyCode, truncate } from '../../../../style/variables';
|
||||
import { asDecimal, convertTo } from '../../../../utils/formatters';
|
||||
import { ImpactBar } from '../../../shared/ImpactBar';
|
||||
|
|
|
@ -30,7 +30,7 @@ import { ChartsSyncContextProvider } from '../../../context/ChartsSyncContext';
|
|||
import { useTrackPageview } from '../../../../../../../plugins/observability/public';
|
||||
import { fromQuery, toQuery } from '../../shared/Links/url_helpers';
|
||||
import { LocalUIFilters } from '../../shared/LocalUIFilters';
|
||||
import { PROJECTION } from '../../../../common/projections/typings';
|
||||
import { PROJECTION } from '../../../../../../../plugins/apm/common/projections/typings';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
import { useServiceTransactionTypes } from '../../../hooks/useServiceTransactionTypes';
|
||||
import { TransactionTypeFilter } from '../../shared/LocalUIFilters/TransactionTypeFilter';
|
||||
|
|
|
@ -15,7 +15,7 @@ import { fromQuery, toQuery } from '../Links/url_helpers';
|
|||
import {
|
||||
ENVIRONMENT_ALL,
|
||||
ENVIRONMENT_NOT_DEFINED
|
||||
} from '../../../../common/environment_filter_values';
|
||||
} from '../../../../../../../plugins/apm/common/environment_filter_values';
|
||||
|
||||
function updateEnvironmentUrl(
|
||||
location: ReturnType<typeof useLocation>,
|
||||
|
|
|
@ -8,7 +8,7 @@ import theme from '@elastic/eui/dist/eui_theme_light.json';
|
|||
import { isBoolean, isNumber, isObject } from 'lodash';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../common/i18n';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../plugins/apm/common/i18n';
|
||||
|
||||
const EmptyValue = styled.span`
|
||||
color: ${theme.euiColorMediumShade};
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
PROCESSOR_EVENT,
|
||||
TRANSACTION_NAME,
|
||||
SERVICE_NAME
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
} from '../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { IUrlParams } from '../../../context/UrlParamsContext/types';
|
||||
|
||||
export function getBoolFilter(urlParams: IUrlParams) {
|
||||
|
|
|
@ -8,8 +8,8 @@ import React from 'react';
|
|||
import {
|
||||
ERROR_GROUP_ID,
|
||||
SERVICE_NAME
|
||||
} from '../../../../../common/elasticsearch_fieldnames';
|
||||
import { APMError } from '../../../../../typings/es_schemas/ui/APMError';
|
||||
} from '../../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { APMError } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import { DiscoverLink } from './DiscoverLink';
|
||||
|
||||
function getDiscoverQuery(error: APMError, kuery?: string) {
|
||||
|
|
|
@ -11,7 +11,7 @@ import url from 'url';
|
|||
import rison, { RisonValue } from 'rison-node';
|
||||
import { useLocation } from '../../../../hooks/useLocation';
|
||||
import { getTimepickerRisonData } from '../rison_helpers';
|
||||
import { APM_STATIC_INDEX_PATTERN_ID } from '../../../../../common/index_pattern_constants';
|
||||
import { APM_STATIC_INDEX_PATTERN_ID } from '../../../../../../../../plugins/apm/common/index_pattern_constants';
|
||||
import { useApmPluginContext } from '../../../../hooks/useApmPluginContext';
|
||||
import { AppMountContextBasePath } from '../../../../context/ApmPluginContext';
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { SPAN_ID } from '../../../../../common/elasticsearch_fieldnames';
|
||||
import { Span } from '../../../../../typings/es_schemas/ui/Span';
|
||||
import { SPAN_ID } from '../../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { Span } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import { DiscoverLink } from './DiscoverLink';
|
||||
|
||||
function getDiscoverQuery(span: Span) {
|
||||
|
|
|
@ -9,8 +9,8 @@ import {
|
|||
PROCESSOR_EVENT,
|
||||
TRACE_ID,
|
||||
TRANSACTION_ID
|
||||
} from '../../../../../common/elasticsearch_fieldnames';
|
||||
import { Transaction } from '../../../../../typings/es_schemas/ui/Transaction';
|
||||
} from '../../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { Transaction } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { DiscoverLink } from './DiscoverLink';
|
||||
|
||||
export function getDiscoverQuery(transaction: Transaction) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow, ShallowWrapper } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { APMError } from '../../../../../../typings/es_schemas/ui/APMError';
|
||||
import { APMError } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import { DiscoverErrorLink } from '../DiscoverErrorLink';
|
||||
|
||||
describe('DiscoverErrorLink without kuery', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow, ShallowWrapper } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { APMError } from '../../../../../../typings/es_schemas/ui/APMError';
|
||||
import { APMError } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import { DiscoverErrorLink } from '../DiscoverErrorLink';
|
||||
|
||||
describe('DiscoverErrorLink without kuery', () => {
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
import { Location } from 'history';
|
||||
import React from 'react';
|
||||
import { APMError } from '../../../../../../typings/es_schemas/ui/APMError';
|
||||
import { Span } from '../../../../../../typings/es_schemas/ui/Span';
|
||||
import { Transaction } from '../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { APMError } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import { Span } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import { Transaction } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { getRenderedHref } from '../../../../../utils/testHelpers';
|
||||
import { DiscoverErrorLink } from '../DiscoverErrorLink';
|
||||
import { DiscoverSpanLink } from '../DiscoverSpanLink';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { Transaction } from '../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import {
|
||||
DiscoverTransactionLink,
|
||||
getDiscoverQuery
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { Transaction } from '../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
// @ts-ignore
|
||||
import configureStore from '../../../../../store/config/configureStore';
|
||||
import { getDiscoverQuery } from '../DiscoverTransactionLink';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { getMlJobId } from '../../../../../common/ml_job_constants';
|
||||
import { getMlJobId } from '../../../../../../../../plugins/apm/common/ml_job_constants';
|
||||
import { MLLink } from './MLLink';
|
||||
|
||||
interface Props {
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
*/
|
||||
|
||||
import { parse, stringify } from 'query-string';
|
||||
import { LocalUIFilterName } from '../../../../server/lib/ui_filters/local_ui_filters/config';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { LocalUIFilterName } from '../../../../../../../plugins/apm/server/lib/ui_filters/local_ui_filters/config';
|
||||
import { url } from '../../../../../../../../src/plugins/kibana_utils/public';
|
||||
|
||||
export function toQuery(search?: string): APMQueryParamsRaw {
|
||||
|
|
|
@ -13,10 +13,11 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import styled from 'styled-components';
|
||||
import { LocalUIFilterName } from '../../../../server/lib/ui_filters/local_ui_filters/config';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { LocalUIFilterName } from '../../../../../../../plugins/apm/server/lib/ui_filters/local_ui_filters/config';
|
||||
import { Filter } from './Filter';
|
||||
import { useLocalUIFilters } from '../../../hooks/useLocalUIFilters';
|
||||
import { PROJECTION } from '../../../../common/projections/typings';
|
||||
import { PROJECTION } from '../../../../../../../plugins/apm/common/projections/typings';
|
||||
|
||||
interface Props {
|
||||
projection: PROJECTION;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import React from 'react';
|
||||
import { ErrorMetadata } from '..';
|
||||
import { render } from '@testing-library/react';
|
||||
import { APMError } from '../../../../../../typings/es_schemas/ui/APMError';
|
||||
import { APMError } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import {
|
||||
expectTextsInDocument,
|
||||
expectTextsNotInDocument,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import React, { useMemo } from 'react';
|
||||
import { ERROR_METADATA_SECTIONS } from './sections';
|
||||
import { APMError } from '../../../../../typings/es_schemas/ui/APMError';
|
||||
import { APMError } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import { getSectionsWithRows } from '../helper';
|
||||
import { MetadataTable } from '..';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import { SpanMetadata } from '..';
|
||||
import { Span } from '../../../../../../typings/es_schemas/ui/Span';
|
||||
import { Span } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import {
|
||||
expectTextsInDocument,
|
||||
expectTextsNotInDocument,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import React, { useMemo } from 'react';
|
||||
import { SPAN_METADATA_SECTIONS } from './sections';
|
||||
import { Span } from '../../../../../typings/es_schemas/ui/Span';
|
||||
import { Span } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import { getSectionsWithRows } from '../helper';
|
||||
import { MetadataTable } from '..';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import React from 'react';
|
||||
import { TransactionMetadata } from '..';
|
||||
import { render } from '@testing-library/react';
|
||||
import { Transaction } from '../../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import {
|
||||
expectTextsInDocument,
|
||||
expectTextsNotInDocument,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import React, { useMemo } from 'react';
|
||||
import { TRANSACTION_METADATA_SECTIONS } from './sections';
|
||||
import { Transaction } from '../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { getSectionsWithRows } from '../helper';
|
||||
import { MetadataTable } from '..';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { getSectionsWithRows, filterSectionsByTerm } from '../helper';
|
||||
import { LABELS, HTTP, SERVICE } from '../sections';
|
||||
import { Transaction } from '../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
|
||||
describe('MetadataTable Helper', () => {
|
||||
const sections = [
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
import { get, pick, isEmpty } from 'lodash';
|
||||
import { Section } from './sections';
|
||||
import { Transaction } from '../../../../typings/es_schemas/ui/Transaction';
|
||||
import { APMError } from '../../../../typings/es_schemas/ui/APMError';
|
||||
import { Span } from '../../../../typings/es_schemas/ui/Span';
|
||||
import { Transaction } from '../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { APMError } from '../../../../../../../plugins/apm/typings/es_schemas/ui/apm_error';
|
||||
import { Span } from '../../../../../../../plugins/apm/typings/es_schemas/ui/span';
|
||||
import { flattenObject, KeyValuePair } from '../../../utils/flattenObject';
|
||||
|
||||
export type SectionsWithRows = ReturnType<typeof getSectionsWithRows>;
|
||||
|
|
|
@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import {
|
||||
omitAllOption,
|
||||
getOptionLabel
|
||||
} from '../../../../common/agent_configuration_constants';
|
||||
} from '../../../../../../../plugins/apm/common/agent_configuration_constants';
|
||||
import { useFetcher } from '../../../hooks/useFetcher';
|
||||
import { SelectWithPlaceholder } from '../SelectWithPlaceholder';
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import { EuiAccordion, EuiTitle } from '@elastic/eui';
|
||||
import { px, unit } from '../../../style/variables';
|
||||
import { Stacktrace } from '.';
|
||||
import { IStackframe } from '../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
import { IStackframe } from '../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
|
||||
// @ts-ignore Styled Components has trouble inferring the types of the default props here.
|
||||
const Accordion = styled(EuiAccordion)`
|
||||
|
|
|
@ -22,7 +22,7 @@ import { registerLanguage } from 'react-syntax-highlighter/dist/light';
|
|||
// @ts-ignore
|
||||
import { xcode } from 'react-syntax-highlighter/dist/styles';
|
||||
import styled from 'styled-components';
|
||||
import { IStackframeWithLineContext } from '../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
import { IStackframeWithLineContext } from '../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
import { borderRadius, px, unit, units } from '../../../style/variables';
|
||||
|
||||
registerLanguage('javascript', javascript);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import theme from '@elastic/eui/dist/eui_theme_light.json';
|
||||
import React, { Fragment } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { IStackframe } from '../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
import { IStackframe } from '../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
import { fontFamilyCode, fontSize, px, units } from '../../../style/variables';
|
||||
|
||||
const FileDetails = styled.div`
|
||||
|
|
|
@ -8,7 +8,7 @@ import { EuiAccordion } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { IStackframe } from '../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
import { IStackframe } from '../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
import { Stackframe } from './Stackframe';
|
||||
import { px, unit } from '../../../style/variables';
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import { EuiAccordion } from '@elastic/eui';
|
|||
import {
|
||||
IStackframe,
|
||||
IStackframeWithLineContext
|
||||
} from '../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
} from '../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
import {
|
||||
borderRadius,
|
||||
fontFamilyCode,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { EuiAccordion } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { borderRadius, px, unit, units } from '../../../style/variables';
|
||||
import { IStackframe } from '../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
import { IStackframe } from '../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
import { KeyValueTable } from '../KeyValueTable';
|
||||
import { flattenObject } from '../../../utils/flattenObject';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { mount, ReactWrapper, shallow } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { IStackframe } from '../../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
import { IStackframe } from '../../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
import { Stackframe } from '../Stackframe';
|
||||
import stacktracesMock from './stacktraces.json';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { IStackframe } from '../../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
import { IStackframe } from '../../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
import { getGroupedStackframes } from '../index';
|
||||
import stacktracesMock from './stacktraces.json';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import { EuiSpacer } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { isEmpty, last } from 'lodash';
|
||||
import React, { Fragment } from 'react';
|
||||
import { IStackframe } from '../../../../typings/es_schemas/raw/fields/Stackframe';
|
||||
import { IStackframe } from '../../../../../../../plugins/apm/typings/es_schemas/raw/fields/stackframe';
|
||||
import { EmptyMessage } from '../../shared/EmptyMessage';
|
||||
import { LibraryStacktrace } from './LibraryStacktrace';
|
||||
import { Stackframe } from './Stackframe';
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
import React from 'react';
|
||||
import { StickyProperties } from './index';
|
||||
import { shallow } from 'enzyme';
|
||||
import { USER_ID, URL_FULL } from '../../../../common/elasticsearch_fieldnames';
|
||||
import {
|
||||
USER_ID,
|
||||
URL_FULL
|
||||
} from '../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { mockMoment } from '../../../utils/testHelpers';
|
||||
|
||||
describe('StickyProperties', () => {
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
import React from 'react';
|
||||
import { Transaction } from '../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { Summary } from './';
|
||||
import { TimestampTooltip } from '../TimestampTooltip';
|
||||
import { DurationSummaryItem } from './DurationSummaryItem';
|
||||
import { ErrorCountSummaryItemBadge } from './ErrorCountSummaryItemBadge';
|
||||
import { isRumAgentName } from '../../../../common/agent_name';
|
||||
import { isRumAgentName } from '../../../../../../../plugins/apm/common/agent_name';
|
||||
import { HttpInfoSummaryItem } from './HttpInfoSummaryItem';
|
||||
import { TransactionResultSummaryItem } from './TransactionResultSummaryItem';
|
||||
import { UserAgentSummaryItem } from './UserAgentSummaryItem';
|
||||
|
|
|
@ -9,7 +9,7 @@ import styled from 'styled-components';
|
|||
import theme from '@elastic/eui/dist/eui_theme_light.json';
|
||||
import { EuiToolTip } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { UserAgent } from '../../../../typings/es_schemas/raw/fields/UserAgent';
|
||||
import { UserAgent } from '../../../../../../../plugins/apm/typings/es_schemas/raw/fields/user_agent';
|
||||
|
||||
type UserAgentSummaryItemProps = UserAgent;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { Transaction } from '../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
|
||||
export const httpOk: Transaction = {
|
||||
'@timestamp': '0',
|
||||
|
|
|
@ -8,7 +8,7 @@ import { EuiFlexGrid, EuiFlexItem } from '@elastic/eui';
|
|||
import styled from 'styled-components';
|
||||
import euiLightVars from '@elastic/eui/dist/eui_theme_light.json';
|
||||
import { px, units } from '../../../../public/style/variables';
|
||||
import { Maybe } from '../../../../typings/common';
|
||||
import { Maybe } from '../../../../../../../plugins/apm/typings/common';
|
||||
|
||||
interface Props {
|
||||
items: Array<Maybe<React.ReactElement>>;
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
SectionSubtitle,
|
||||
SectionTitle
|
||||
} from '../../../../../../../plugins/observability/public';
|
||||
import { Transaction } from '../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { useApmPluginContext } from '../../../hooks/useApmPluginContext';
|
||||
import { useLocation } from '../../../hooks/useLocation';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import React from 'react';
|
||||
import { render, fireEvent } from '@testing-library/react';
|
||||
import { TransactionActionMenu } from '../TransactionActionMenu';
|
||||
import { Transaction } from '../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import * as Transactions from './mockData';
|
||||
import { MockApmPluginContextWrapper } from '../../../../utils/testHelpers';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
import { Location } from 'history';
|
||||
import { getSections } from '../sections';
|
||||
import { Transaction } from '../../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { AppMountContextBasePath } from '../../../../context/ApmPluginContext';
|
||||
|
||||
describe('Transaction action menu', () => {
|
||||
|
|
|
@ -8,7 +8,7 @@ import { Location } from 'history';
|
|||
import { pick, isEmpty } from 'lodash';
|
||||
import moment from 'moment';
|
||||
import url from 'url';
|
||||
import { Transaction } from '../../../../typings/es_schemas/ui/Transaction';
|
||||
import { Transaction } from '../../../../../../../plugins/apm/typings/es_schemas/ui/transaction';
|
||||
import { IUrlParams } from '../../../context/UrlParamsContext/types';
|
||||
import { getDiscoverHref } from '../Links/DiscoverLinks/DiscoverLink';
|
||||
import { getDiscoverQuery } from '../Links/DiscoverLinks/DiscoverTransactionLink';
|
||||
|
|
|
@ -7,9 +7,12 @@
|
|||
import React, { useMemo } from 'react';
|
||||
import numeral from '@elastic/numeral';
|
||||
import { throttle } from 'lodash';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n';
|
||||
import { Coordinate, TimeSeries } from '../../../../../typings/timeseries';
|
||||
import { Maybe } from '../../../../../typings/common';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../../plugins/apm/common/i18n';
|
||||
import {
|
||||
Coordinate,
|
||||
TimeSeries
|
||||
} from '../../../../../../../../plugins/apm/typings/timeseries';
|
||||
import { Maybe } from '../../../../../../../../plugins/apm/typings/common';
|
||||
import { TransactionLineChart } from '../../charts/TransactionCharts/TransactionLineChart';
|
||||
import { asPercent } from '../../../../utils/formatters';
|
||||
import { unit } from '../../../../style/variables';
|
||||
|
|
|
@ -14,8 +14,8 @@ import {
|
|||
EuiText
|
||||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { Maybe } from '../../../../../typings/common';
|
||||
import { Annotation } from '../../../../../common/annotations';
|
||||
import { Maybe } from '../../../../../../../../plugins/apm/typings/common';
|
||||
import { Annotation } from '../../../../../../../../plugins/apm/common/annotations';
|
||||
import { PlotValues, SharedPlot } from './plotUtils';
|
||||
import { asAbsoluteDateTime } from '../../../../utils/formatters';
|
||||
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
|
||||
// @ts-ignore
|
||||
import * as plotUtils from './plotUtils';
|
||||
import { TimeSeries, Coordinate } from '../../../../../typings/timeseries';
|
||||
import {
|
||||
TimeSeries,
|
||||
Coordinate
|
||||
} from '../../../../../../../../plugins/apm/typings/timeseries';
|
||||
|
||||
describe('plotUtils', () => {
|
||||
describe('getPlotValues', () => {
|
||||
|
|
|
@ -11,7 +11,10 @@ import d3 from 'd3';
|
|||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
|
||||
import { TimeSeries, Coordinate } from '../../../../../typings/timeseries';
|
||||
import {
|
||||
TimeSeries,
|
||||
Coordinate
|
||||
} from '../../../../../../../../plugins/apm/typings/timeseries';
|
||||
import { unit } from '../../../../style/variables';
|
||||
import { getDomainTZ, getTimeTicksTZ } from '../helper/timezone';
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
*/
|
||||
import { EuiTitle } from '@elastic/eui';
|
||||
import React from 'react';
|
||||
import { GenericMetricsChart } from '../../../../../server/lib/metrics/transform_metrics_chart';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { GenericMetricsChart } from '../../../../../../../../plugins/apm/server/lib/metrics/transform_metrics_chart';
|
||||
// @ts-ignore
|
||||
import CustomPlot from '../CustomPlot';
|
||||
import {
|
||||
|
@ -16,10 +17,10 @@ import {
|
|||
getFixedByteFormatter,
|
||||
asDuration
|
||||
} from '../../../../utils/formatters';
|
||||
import { Coordinate } from '../../../../../typings/timeseries';
|
||||
import { Coordinate } from '../../../../../../../../plugins/apm/typings/timeseries';
|
||||
import { isValidCoordinateValue } from '../../../../utils/isValidCoordinateValue';
|
||||
import { useChartsSync } from '../../../../hooks/useChartsSync';
|
||||
import { Maybe } from '../../../../../typings/common';
|
||||
import { Maybe } from '../../../../../../../../plugins/apm/typings/common';
|
||||
|
||||
interface Props {
|
||||
start: Maybe<number | string>;
|
||||
|
|
|
@ -11,7 +11,7 @@ import styled from 'styled-components';
|
|||
import {
|
||||
TRACE_ID,
|
||||
TRANSACTION_ID
|
||||
} from '../../../../../../common/elasticsearch_fieldnames';
|
||||
} from '../../../../../../../../../plugins/apm/common/elasticsearch_fieldnames';
|
||||
import { useUrlParams } from '../../../../../hooks/useUrlParams';
|
||||
import { px, unit, units } from '../../../../../style/variables';
|
||||
import { asDuration } from '../../../../../utils/formatters';
|
||||
|
|
|
@ -8,7 +8,7 @@ import React, { useCallback } from 'react';
|
|||
import {
|
||||
Coordinate,
|
||||
RectCoordinate
|
||||
} from '../../../../../../typings/timeseries';
|
||||
} from '../../../../../../../../../plugins/apm/typings/timeseries';
|
||||
import { useChartsSync } from '../../../../../hooks/useChartsSync';
|
||||
// @ts-ignore
|
||||
import CustomPlot from '../../CustomPlot';
|
||||
|
|
|
@ -19,8 +19,11 @@ import { Location } from 'history';
|
|||
import React, { Component } from 'react';
|
||||
import { isEmpty, flatten } from 'lodash';
|
||||
import styled from 'styled-components';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n';
|
||||
import { Coordinate, TimeSeries } from '../../../../../typings/timeseries';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../../../../plugins/apm/common/i18n';
|
||||
import {
|
||||
Coordinate,
|
||||
TimeSeries
|
||||
} from '../../../../../../../../plugins/apm/typings/timeseries';
|
||||
import { ITransactionChartData } from '../../../../selectors/chartSelectors';
|
||||
import { IUrlParams } from '../../../../context/UrlParamsContext/types';
|
||||
import {
|
||||
|
@ -39,7 +42,7 @@ import {
|
|||
TRANSACTION_PAGE_LOAD,
|
||||
TRANSACTION_ROUTE_CHANGE,
|
||||
TRANSACTION_REQUEST
|
||||
} from '../../../../../common/transaction_types';
|
||||
} from '../../../../../../../../plugins/apm/common/transaction_types';
|
||||
|
||||
interface TransactionChartProps {
|
||||
hasMLJob: boolean;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { compact, pick } from 'lodash';
|
||||
import datemath from '@elastic/datemath';
|
||||
import { IUrlParams } from './types';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { ProcessorEvent } from '../../../../../../plugins/apm/common/processor_event';
|
||||
|
||||
interface PathParams {
|
||||
processorEvent?: ProcessorEvent;
|
||||
|
|
|
@ -16,11 +16,12 @@ import { uniqueId, mapValues } from 'lodash';
|
|||
import { IUrlParams } from './types';
|
||||
import { getParsedDate } from './helpers';
|
||||
import { resolveUrlParams } from './resolveUrlParams';
|
||||
import { UIFilters } from '../../../typings/ui-filters';
|
||||
import { UIFilters } from '../../../../../../plugins/apm/typings/ui_filters';
|
||||
import {
|
||||
localUIFilterNames,
|
||||
LocalUIFilterName
|
||||
} from '../../../server/lib/ui_filters/local_ui_filters/config';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
} from '../../../../../../plugins/apm/server/lib/ui_filters/local_ui_filters/config';
|
||||
import { pickKeys } from '../../utils/pickKeys';
|
||||
import { useDeepObjectIdentity } from '../../hooks/useDeepObjectIdentity';
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@ import {
|
|||
} from './helpers';
|
||||
import { toQuery } from '../../components/shared/Links/url_helpers';
|
||||
import { TIMEPICKER_DEFAULTS } from './constants';
|
||||
import { localUIFilterNames } from '../../../server/lib/ui_filters/local_ui_filters/config';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { localUIFilterNames } from '../../../../../../plugins/apm/server/lib/ui_filters/local_ui_filters/config';
|
||||
import { pickKeys } from '../../utils/pickKeys';
|
||||
|
||||
type TimeUrlParams = Pick<
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue