[UX Dashboard] Unify processor event (#135367)

* Migrate page load distribution query to use data plugin.

* Migrate breakdowns to use data plugin.

* Delete page load dist breakdown from APM server.

* Update comments.

* Unify `ProcessorEvent` enum.

* Fix linting and delete old code.

* Fix import.

* Delete obsolete snapshots.

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Fix remaining conflicts

* Fix remaining conflicts

* Fix import

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: emilioalvap <emilio.alvarezpineiro@elastic.co>
This commit is contained in:
Justin Kambic 2022-08-02 15:22:19 -04:00 committed by GitHub
parent 788d688f1a
commit 2f7603de18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
102 changed files with 100 additions and 176 deletions

View file

@ -11,8 +11,6 @@ exports[`Error AGENT_NAME 1`] = `"java"`;
exports[`Error AGENT_VERSION 1`] = `"agent version"`;
exports[`Error CLIENT_GEO 1`] = `undefined`;
exports[`Error CLIENT_GEO_COUNTRY_ISO_CODE 1`] = `undefined`;
exports[`Error CLOUD 1`] = `
@ -39,8 +37,6 @@ exports[`Error CLOUD_REGION 1`] = `"europe-west1"`;
exports[`Error CLOUD_SERVICE_NAME 1`] = `undefined`;
exports[`Error CLS_FIELD 1`] = `undefined`;
exports[`Error CONTAINER_ID 1`] = `undefined`;
exports[`Error DESTINATION_ADDRESS 1`] = `undefined`;
@ -71,10 +67,6 @@ exports[`Error FAAS_ID 1`] = `undefined`;
exports[`Error FAAS_TRIGGER_TYPE 1`] = `undefined`;
exports[`Error FCP_FIELD 1`] = `undefined`;
exports[`Error FID_FIELD 1`] = `undefined`;
exports[`Error HOST 1`] = `
Object {
"hostname": "my hostname",
@ -95,8 +87,6 @@ exports[`Error KUBERNETES 1`] = `undefined`;
exports[`Error LABEL_NAME 1`] = `undefined`;
exports[`Error LCP_FIELD 1`] = `undefined`;
exports[`Error METRIC_CGROUP_MEMORY_LIMIT_BYTES 1`] = `undefined`;
exports[`Error METRIC_CGROUP_MEMORY_USAGE_BYTES 1`] = `undefined`;
@ -145,8 +135,6 @@ exports[`Error PROFILE_ALLOC_SPACE 1`] = `undefined`;
exports[`Error PROFILE_CPU_NS 1`] = `undefined`;
exports[`Error PROFILE_DURATION 1`] = `undefined`;
exports[`Error PROFILE_ID 1`] = `undefined`;
exports[`Error PROFILE_INUSE_OBJECTS 1`] = `undefined`;
@ -217,12 +205,8 @@ exports[`Error SPAN_SUBTYPE 1`] = `undefined`;
exports[`Error SPAN_TYPE 1`] = `undefined`;
exports[`Error TBT_FIELD 1`] = `undefined`;
exports[`Error TRACE_ID 1`] = `"trace id"`;
exports[`Error TRANSACTION_DOM_INTERACTIVE 1`] = `undefined`;
exports[`Error TRANSACTION_DURATION 1`] = `undefined`;
exports[`Error TRANSACTION_DURATION_HISTOGRAM 1`] = `undefined`;
@ -239,8 +223,6 @@ exports[`Error TRANSACTION_ROOT 1`] = `undefined`;
exports[`Error TRANSACTION_SAMPLED 1`] = `undefined`;
exports[`Error TRANSACTION_TIME_TO_FIRST_BYTE 1`] = `undefined`;
exports[`Error TRANSACTION_TYPE 1`] = `"request"`;
exports[`Error TRANSACTION_URL 1`] = `undefined`;
@ -268,8 +250,6 @@ exports[`Span AGENT_NAME 1`] = `"java"`;
exports[`Span AGENT_VERSION 1`] = `"agent version"`;
exports[`Span CLIENT_GEO 1`] = `undefined`;
exports[`Span CLIENT_GEO_COUNTRY_ISO_CODE 1`] = `undefined`;
exports[`Span CLOUD 1`] = `
@ -296,8 +276,6 @@ exports[`Span CLOUD_REGION 1`] = `"europe-west1"`;
exports[`Span CLOUD_SERVICE_NAME 1`] = `undefined`;
exports[`Span CLS_FIELD 1`] = `undefined`;
exports[`Span CONTAINER_ID 1`] = `undefined`;
exports[`Span DESTINATION_ADDRESS 1`] = `undefined`;
@ -328,10 +306,6 @@ exports[`Span FAAS_ID 1`] = `undefined`;
exports[`Span FAAS_TRIGGER_TYPE 1`] = `undefined`;
exports[`Span FCP_FIELD 1`] = `undefined`;
exports[`Span FID_FIELD 1`] = `undefined`;
exports[`Span HOST 1`] = `undefined`;
exports[`Span HOST_HOSTNAME 1`] = `undefined`;
@ -348,8 +322,6 @@ exports[`Span KUBERNETES 1`] = `undefined`;
exports[`Span LABEL_NAME 1`] = `undefined`;
exports[`Span LCP_FIELD 1`] = `undefined`;
exports[`Span METRIC_CGROUP_MEMORY_LIMIT_BYTES 1`] = `undefined`;
exports[`Span METRIC_CGROUP_MEMORY_USAGE_BYTES 1`] = `undefined`;
@ -398,8 +370,6 @@ exports[`Span PROFILE_ALLOC_SPACE 1`] = `undefined`;
exports[`Span PROFILE_CPU_NS 1`] = `undefined`;
exports[`Span PROFILE_DURATION 1`] = `undefined`;
exports[`Span PROFILE_ID 1`] = `undefined`;
exports[`Span PROFILE_INUSE_OBJECTS 1`] = `undefined`;
@ -466,12 +436,8 @@ exports[`Span SPAN_SUBTYPE 1`] = `"my subtype"`;
exports[`Span SPAN_TYPE 1`] = `"span type"`;
exports[`Span TBT_FIELD 1`] = `undefined`;
exports[`Span TRACE_ID 1`] = `"trace id"`;
exports[`Span TRANSACTION_DOM_INTERACTIVE 1`] = `undefined`;
exports[`Span TRANSACTION_DURATION 1`] = `undefined`;
exports[`Span TRANSACTION_DURATION_HISTOGRAM 1`] = `undefined`;
@ -488,8 +454,6 @@ exports[`Span TRANSACTION_ROOT 1`] = `undefined`;
exports[`Span TRANSACTION_SAMPLED 1`] = `undefined`;
exports[`Span TRANSACTION_TIME_TO_FIRST_BYTE 1`] = `undefined`;
exports[`Span TRANSACTION_TYPE 1`] = `undefined`;
exports[`Span TRANSACTION_URL 1`] = `undefined`;
@ -517,8 +481,6 @@ exports[`Transaction AGENT_NAME 1`] = `"java"`;
exports[`Transaction AGENT_VERSION 1`] = `"agent version"`;
exports[`Transaction CLIENT_GEO 1`] = `undefined`;
exports[`Transaction CLIENT_GEO_COUNTRY_ISO_CODE 1`] = `undefined`;
exports[`Transaction CLOUD 1`] = `
@ -545,8 +507,6 @@ exports[`Transaction CLOUD_REGION 1`] = `"europe-west1"`;
exports[`Transaction CLOUD_SERVICE_NAME 1`] = `undefined`;
exports[`Transaction CLS_FIELD 1`] = `undefined`;
exports[`Transaction CONTAINER_ID 1`] = `"container1234567890abcdef"`;
exports[`Transaction DESTINATION_ADDRESS 1`] = `undefined`;
@ -577,10 +537,6 @@ exports[`Transaction FAAS_ID 1`] = `undefined`;
exports[`Transaction FAAS_TRIGGER_TYPE 1`] = `undefined`;
exports[`Transaction FCP_FIELD 1`] = `undefined`;
exports[`Transaction FID_FIELD 1`] = `undefined`;
exports[`Transaction HOST 1`] = `
Object {
"hostname": "my hostname",
@ -607,8 +563,6 @@ Object {
exports[`Transaction LABEL_NAME 1`] = `undefined`;
exports[`Transaction LCP_FIELD 1`] = `undefined`;
exports[`Transaction METRIC_CGROUP_MEMORY_LIMIT_BYTES 1`] = `undefined`;
exports[`Transaction METRIC_CGROUP_MEMORY_USAGE_BYTES 1`] = `undefined`;
@ -657,8 +611,6 @@ exports[`Transaction PROFILE_ALLOC_SPACE 1`] = `undefined`;
exports[`Transaction PROFILE_CPU_NS 1`] = `undefined`;
exports[`Transaction PROFILE_DURATION 1`] = `undefined`;
exports[`Transaction PROFILE_ID 1`] = `undefined`;
exports[`Transaction PROFILE_INUSE_OBJECTS 1`] = `undefined`;
@ -729,12 +681,8 @@ exports[`Transaction SPAN_SUBTYPE 1`] = `undefined`;
exports[`Transaction SPAN_TYPE 1`] = `undefined`;
exports[`Transaction TBT_FIELD 1`] = `undefined`;
exports[`Transaction TRACE_ID 1`] = `"trace id"`;
exports[`Transaction TRANSACTION_DOM_INTERACTIVE 1`] = `undefined`;
exports[`Transaction TRANSACTION_DURATION 1`] = `1337`;
exports[`Transaction TRANSACTION_DURATION_HISTOGRAM 1`] = `undefined`;
@ -751,8 +699,6 @@ exports[`Transaction TRANSACTION_ROOT 1`] = `undefined`;
exports[`Transaction TRANSACTION_SAMPLED 1`] = `true`;
exports[`Transaction TRANSACTION_TIME_TO_FIRST_BYTE 1`] = `undefined`;
exports[`Transaction TRANSACTION_TYPE 1`] = `"transaction type"`;
exports[`Transaction TRANSACTION_URL 1`] = `"http://www.elastic.co"`;

View file

@ -6,7 +6,7 @@
*/
import { i18n } from '@kbn/i18n';
import { ProcessorEvent } from './processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
PROCESSOR_EVENT,
SPAN_DESTINATION_SERVICE_RESOURCE,

View file

@ -128,23 +128,10 @@ export const CLIENT_GEO_COUNTRY_ISO_CODE = 'client.geo.country_iso_code';
// RUM Labels
export const TRANSACTION_URL = 'url.full';
export const CLIENT_GEO = 'client.geo';
export const USER_AGENT_DEVICE = 'user_agent.device.name';
export const USER_AGENT_OS = 'user_agent.os.name';
export const TRANSACTION_TIME_TO_FIRST_BYTE =
'transaction.marks.agent.timeToFirstByte';
export const TRANSACTION_DOM_INTERACTIVE =
'transaction.marks.agent.domInteractive';
export const FCP_FIELD = 'transaction.marks.agent.firstContentfulPaint';
export const LCP_FIELD = 'transaction.marks.agent.largestContentfulPaint';
export const TBT_FIELD = 'transaction.experience.tbt';
export const FID_FIELD = 'transaction.experience.fid';
export const CLS_FIELD = 'transaction.experience.cls';
export const PROFILE_ID = 'profile.id';
export const PROFILE_DURATION = 'profile.duration';
export const PROFILE_TOP_ID = 'profile.top.id';
export const PROFILE_STACK = 'profile.stack';

View file

@ -4,16 +4,9 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import * as t from 'io-ts';
export enum ProcessorEvent {
transaction = 'transaction',
error = 'error',
metric = 'metric',
span = 'span',
profile = 'profile',
}
export const processorEventRt = t.union([
t.literal(ProcessorEvent.transaction),
t.literal(ProcessorEvent.error),

View file

@ -28,6 +28,7 @@ import { i18n } from '@kbn/i18n';
import { useUiTracker } from '@kbn/observability-plugin/public';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
asPercent,
asPreciseDecimal,
@ -55,7 +56,6 @@ import { OnAddFilter } from './context_popover/top_values';
import { useFailedTransactionsCorrelations } from './use_failed_transactions_correlations';
import { getTransactionDistributionChartData } from './get_transaction_distribution_chart_data';
import { ChartTitleToolTip } from './chart_title_tool_tip';
import { ProcessorEvent } from '../../../../common/processor_event';
import { MIN_TAB_TITLE_HEIGHT } from '../../shared/charts/duration_distribution_chart_with_scrubber';
import { TotalDocCountLabel } from '../../shared/charts/duration_distribution_chart/total_doc_count_label';

View file

@ -27,6 +27,7 @@ import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import { useUiTracker } from '@kbn/observability-plugin/public';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { asPreciseDecimal } from '../../../../common/utils/formatters';
import { LatencyCorrelation } from '../../../../common/correlations/latency_correlations/types';
import { FieldStats } from '../../../../common/correlations/field_stats_types';
@ -51,7 +52,6 @@ import { getTransactionDistributionChartData } from './get_transaction_distribut
import { useTheme } from '../../../hooks/use_theme';
import { ChartTitleToolTip } from './chart_title_tool_tip';
import { getLatencyCorrelationImpactLabel } from './utils/get_failed_transactions_correlation_impact_label';
import { ProcessorEvent } from '../../../../common/processor_event';
import { MIN_TAB_TITLE_HEIGHT } from '../../shared/charts/duration_distribution_chart_with_scrubber';
export function FallbackCorrelationBadge() {

View file

@ -5,9 +5,9 @@
* 2.0.
*/
import { i18n } from '@kbn/i18n';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import React from 'react';
import { DEFAULT_PERCENTILE_THRESHOLD } from '../../../../common/correlations/constants';
import { ProcessorEvent } from '../../../../common/processor_event';
import { useApmParams } from '../../../hooks/use_apm_params';
import { useFetcher } from '../../../hooks/use_fetcher';
import { useSampleChartSelection } from '../../../hooks/use_sample_chart_selection';

View file

@ -10,6 +10,7 @@ import { EuiSpacer } from '@elastic/eui';
import React from 'react';
import { useHistory } from 'react-router-dom';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
@ -17,7 +18,6 @@ import type { TabContentProps } from '../types';
import { useWaterfallFetcher } from '../use_waterfall_fetcher';
import { WaterfallWithSummary } from '../waterfall_with_summary';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context';
import { useApmParams } from '../../../../hooks/use_apm_params';
import { useTimeRange } from '../../../../hooks/use_time_range';

View file

@ -21,6 +21,7 @@ import {
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { euiStyled } from '@kbn/kibana-react-plugin/common';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { isEmpty } from 'lodash';
import React, { Fragment } from 'react';
import { Span } from '../../../../../../../../typings/es_schemas/ui/span';
@ -40,7 +41,6 @@ import { ResponsiveFlyout } from '../responsive_flyout';
import { SpanLinksCount } from '../waterfall_helpers/waterfall_helpers';
import { SpanDatabase } from './span_db';
import { StickySpanProperties } from './sticky_span_properties';
import { ProcessorEvent } from '../../../../../../../../common/processor_event';
function formatType(type: string) {
switch (type) {

View file

@ -17,8 +17,8 @@ import {
EuiTitle,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import React from 'react';
import { ProcessorEvent } from '../../../../../../../../common/processor_event';
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction';
import { TransactionMetadata } from '../../../../../../shared/metadata_table/transaction_metadata';
import { getSpanLinksTabContent } from '../../../../../../shared/span_links/span_links_tab_content';

View file

@ -7,11 +7,11 @@
import { euiPaletteColorBlind } from '@elastic/eui';
import { first, flatten, groupBy, isEmpty, sortBy, uniq } from 'lodash';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import type { APIReturnType } from '../../../../../../../services/rest/create_call_apm_api';
import type { APMError } from '../../../../../../../../typings/es_schemas/ui/apm_error';
import type { Span } from '../../../../../../../../typings/es_schemas/ui/span';
import type { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction';
import { ProcessorEvent } from '../../../../../../../../common/processor_event';
type TraceAPIResponse = APIReturnType<'GET /internal/apm/traces/{traceId}'>;

View file

@ -31,6 +31,7 @@ import { i18n } from '@kbn/i18n';
import { useChartTheme } from '@kbn/observability-plugin/public';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { getDurationFormatter } from '../../../../../common/utils/formatters';
import type { HistogramItem } from '../../../../../common/correlations/types';
import { DEFAULT_PERCENTILE_THRESHOLD } from '../../../../../common/correlations/constants';
@ -39,7 +40,6 @@ import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
import { useTheme } from '../../../../hooks/use_theme';
import { ChartContainer } from '../chart_container';
import { ProcessorEvent } from '../../../../../common/processor_event';
const NUMBER_OF_TRANSACTIONS_LABEL = i18n.translate(
'xpack.apm.durationDistribution.chart.numberOfTransactionsLabel',

View file

@ -9,7 +9,7 @@ import { useEuiTheme } from '@elastic/eui';
import { EuiText } from '@elastic/eui';
import React from 'react';
import { i18n } from '@kbn/i18n';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
interface Props {
eventType: ProcessorEvent.transaction | ProcessorEvent.span;

View file

@ -17,6 +17,7 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { ChartTitleToolTip } from '../../../app/correlations/chart_title_tool_tip';
import { getDurationFormatter } from '../../../../../common/utils/formatters';
import {
@ -25,7 +26,6 @@ import {
} from '../duration_distribution_chart';
import { TotalDocCountLabel } from '../duration_distribution_chart/total_doc_count_label';
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
import { ProcessorEvent } from '../../../../../common/processor_event';
// Format the selected latency range for the "Clear selection" badge.
// If the two values share the same unit, it will only displayed once.

View file

@ -5,11 +5,9 @@
* 2.0.
*/
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { useLocation } from 'react-router-dom';
import {
ProcessorEvent,
UIProcessorEvent,
} from '../../../../common/processor_event';
import { UIProcessorEvent } from '../../../../common/processor_event';
/**
* Infer the processor.event to used based on the route path

View file

@ -6,11 +6,11 @@
*/
import React, { useMemo } from 'react';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { APMError } from '../../../../../typings/es_schemas/ui/apm_error';
import { getSectionsFromFields } from '../helper';
import { MetadataTable } from '..';
import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher';
import { ProcessorEvent } from '../../../../../common/processor_event';
interface Props {
error: APMError;

View file

@ -6,11 +6,11 @@
*/
import React, { useMemo } from 'react';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Span } from '../../../../../typings/es_schemas/ui/span';
import { getSectionsFromFields } from '../helper';
import { MetadataTable } from '..';
import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher';
import { ProcessorEvent } from '../../../../../common/processor_event';
interface Props {
span: Span;

View file

@ -6,10 +6,10 @@
*/
import React, { useMemo } from 'react';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Transaction } from '../../../../../typings/es_schemas/ui/transaction';
import { getSectionsFromFields } from '../helper';
import { MetadataTable } from '..';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher';
interface Props {

View file

@ -13,6 +13,7 @@ import {
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import React, { useMemo, useState } from 'react';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { useApmParams } from '../../../hooks/use_apm_params';
import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher';
import { useTimeRange } from '../../../hooks/use_time_range';
@ -20,7 +21,6 @@ import { SpanLinksCount } from '../../app/transaction_details/waterfall_with_sum
import { KueryBar } from '../kuery_bar';
import { SpanLinksCallout } from './span_links_callout';
import { SpanLinksTable } from './span_links_table';
import { ProcessorEvent } from '../../../../common/processor_event';
import { useLocalStorage } from '../../../hooks/use_local_storage';
interface Props {

View file

@ -7,8 +7,8 @@
import { EuiNotificationBadge, EuiSpacer } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import React from 'react';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { SpanLinks } from '.';
import { ProcessorEvent } from '../../../../common/processor_event';
import { SpanLinksCount } from '../../app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers';
import { TechnicalPreviewBadge } from '../technical_preview_badge';

View file

@ -126,5 +126,3 @@ export type {
APIEndpoint,
} from './routes/apm_routes/get_global_apm_server_route_repository';
export type { APMRouteHandlerResources } from './routes/typings';
export type { ProcessorEvent } from '../common/processor_event';

View file

@ -10,13 +10,13 @@ import { Logger } from '@kbn/core/server';
import { snakeCase } from 'lodash';
import moment from 'moment';
import uuid from 'uuid/v4';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { ML_ERRORS } from '../../../common/anomaly_detection';
import {
METRICSET_NAME,
PROCESSOR_EVENT,
} from '../../../common/elasticsearch_fieldnames';
import { Environment } from '../../../common/environment_rt';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
import { withApmSpan } from '../../utils/with_apm_span';
import { Setup } from '../helpers/setup_request';

View file

@ -7,8 +7,8 @@
import { fromKueryExpression } from '@kbn/es-query';
import { flatten, merge, sortBy, sum, pickBy } from 'lodash';
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { asMutableArray } from '../../../../common/utils/as_mutable_array';
import { ProcessorEvent } from '../../../../common/processor_event';
import { TelemetryTask } from '.';
import { AGENT_NAMES, RUM_AGENT_NAMES } from '../../../../common/agent_name';
import {

View file

@ -8,6 +8,7 @@
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import objectHash from 'object-hash';
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms';
import { ENVIRONMENT_NOT_DEFINED } from '../../../../common/environment_filter_values';
import { asMutableArray } from '../../../../common/utils/as_mutable_array';
@ -23,7 +24,6 @@ import {
SPAN_SUBTYPE,
SPAN_TYPE,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { Setup } from '../../helpers/setup_request';
import { withApmSpan } from '../../../utils/with_apm_span';
import { Node, NodeType } from '../../../../common/connections';

View file

@ -9,6 +9,7 @@ import { sum } from 'lodash';
import objectHash from 'object-hash';
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent';
import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms';
import { ENVIRONMENT_NOT_DEFINED } from '../../../../common/environment_filter_values';
@ -24,7 +25,6 @@ import {
SPAN_SUBTYPE,
SPAN_TYPE,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { getBucketSize } from '../../helpers/get_bucket_size';
import { EventOutcome } from '../../../../common/event_outcome';
import { Setup } from '../../helpers/setup_request';

View file

@ -20,9 +20,9 @@ import {
} from '@kbn/core/types/elasticsearch';
import { unwrapEsResponse } from '@kbn/observability-plugin/server';
import { omit } from 'lodash';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Profile } from '../../../../../typings/es_schemas/ui/profile';
import { withApmSpan } from '../../../../utils/with_apm_span';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { APMError } from '../../../../../typings/es_schemas/ui/apm_error';
import { Metric } from '../../../../../typings/es_schemas/ui/metric';
import { Span } from '../../../../../typings/es_schemas/ui/span';

View file

@ -7,8 +7,8 @@
import { uniq, defaultsDeep, cloneDeep } from 'lodash';
import { ESSearchRequest, ESFilter } from '@kbn/core/types/elasticsearch';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { PROCESSOR_EVENT } from '../../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { ApmIndicesConfig } from '../../../../routes/settings/apm_indices/get_apm_indices';
const processorEventIndexMap = {

View file

@ -9,7 +9,7 @@ import { elasticsearchServiceMock } from '@kbn/core/server/mocks';
import { setupRequest } from './setup_request';
import { APMConfig } from '../..';
import { APMRouteHandlerResources } from '../../routes/typings';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { getApmIndices } from '../../routes/settings/apm_indices/get_apm_indices';
jest.mock('../../routes/settings/apm_indices/get_apm_indices', () => ({

View file

@ -11,6 +11,7 @@ import {
rangeQuery,
termQuery,
} from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
METRICSET_NAME,
SPAN_DESTINATION_SERVICE_RESPONSE_TIME_COUNT,
@ -18,7 +19,6 @@ import {
SPAN_DURATION,
SPAN_NAME,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { Setup } from '../setup_request';
export function getProcessorEventForServiceDestinationStatistics(

View file

@ -6,9 +6,9 @@
*/
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { getSearchAggregatedTransactions } from '.';
import { Setup } from '../setup_request';
import { ProcessorEvent } from '../../../../common/processor_event';
import { APMEventClient } from '../create_es_client/create_apm_event_client';
import { SearchAggregatedTransactionSetting } from '../../../../common/aggregated_transactions';

View file

@ -6,8 +6,8 @@
*/
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { SearchAggregatedTransactionSetting } from '../../../../common/aggregated_transactions';
import { ProcessorEvent } from '../../../../common/processor_event';
import {
TRANSACTION_DURATION,
TRANSACTION_DURATION_HISTOGRAM,

View file

@ -6,8 +6,8 @@
*/
import { rangeQuery, termQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { SERVICE_NAME } from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { AlertParams } from '../route';
import { environmentQuery } from '../../../../common/utils/environment_query';
import { Setup } from '../../../lib/helpers/setup_request';

View file

@ -18,6 +18,7 @@ import { ESSearchResponse } from '@kbn/core/types/elasticsearch';
import { KibanaRequest } from '@kbn/core/server';
import { termQuery } from '@kbn/observability-plugin/server';
import { createLifecycleRuleTypeFactory } from '@kbn/rule-registry-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
AlertType,
ALERT_TYPES_CONFIG,
@ -40,7 +41,6 @@ import {
getEnvironmentLabel,
} from '../../../common/environment_filter_values';
import { ANOMALY_SEVERITY } from '../../../common/ml_constants';
import { ProcessorEvent } from '../../../common/processor_event';
import { asMutableArray } from '../../../common/utils/as_mutable_array';
import { getAlertUrlTransaction } from '../../../common/utils/formatters';
import { getMLJobs } from '../service_map/get_service_anomalies';

View file

@ -14,6 +14,7 @@ import {
} from '@kbn/rule-data-utils';
import { createLifecycleRuleTypeFactory } from '@kbn/rule-registry-plugin/server';
import { termQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
ENVIRONMENT_NOT_DEFINED,
getEnvironmentEsField,
@ -31,7 +32,6 @@ import {
SERVICE_ENVIRONMENT,
SERVICE_NAME,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
import { getApmIndices } from '../settings/apm_indices/get_apm_indices';
import { apmActionVariables } from './action_variables';

View file

@ -15,6 +15,7 @@ import {
import { firstValueFrom } from 'rxjs';
import { asDuration } from '@kbn/observability-plugin/common/utils/formatters';
import { createLifecycleRuleTypeFactory } from '@kbn/rule-registry-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { getAlertUrlTransaction } from '../../../common/utils/formatters';
import { SearchAggregatedTransactionSetting } from '../../../common/aggregated_transactions';
import {
@ -33,7 +34,6 @@ import {
getEnvironmentEsField,
getEnvironmentLabel,
} from '../../../common/environment_filter_values';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
import { getDurationFormatter } from '../../../common/utils/formatters';
import {

View file

@ -15,6 +15,7 @@ import {
import { createLifecycleRuleTypeFactory } from '@kbn/rule-registry-plugin/server';
import { asPercent } from '@kbn/observability-plugin/common/utils/formatters';
import { termQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
ENVIRONMENT_NOT_DEFINED,
getEnvironmentEsField,
@ -35,7 +36,6 @@ import {
TRANSACTION_TYPE,
} from '../../../common/elasticsearch_fieldnames';
import { EventOutcome } from '../../../common/event_outcome';
import { ProcessorEvent } from '../../../common/processor_event';
import { asDecimalOrInteger } from '../../../common/utils/formatters';
import { environmentQuery } from '../../../common/utils/environment_query';
import { getApmIndices } from '../settings/apm_indices/get_apm_indices';

View file

@ -6,6 +6,7 @@
*/
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
SPAN_DURATION,
TRANSACTION_DURATION,
@ -13,7 +14,6 @@ import {
import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types';
import { Setup } from '../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../common/processor_event';
import { getCommonCorrelationsQuery } from './get_common_correlations_query';
export const fetchDurationCorrelation = async ({

View file

@ -7,6 +7,7 @@
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { ES_FIELD_TYPES } from '@kbn/field-types';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import type { CommonCorrelationsQueryParams } from '../../../../common/correlations/types';
import {
FIELD_PREFIX_TO_EXCLUDE_AS_CANDIDATE,
@ -17,7 +18,6 @@ import {
import { hasPrefixToInclude } from '../../../../common/correlations/utils';
import { Setup } from '../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../common/processor_event';
import { getCommonCorrelationsQuery } from './get_common_correlations_query';
const SUPPORTED_ES_FIELD_TYPES = [

View file

@ -7,12 +7,12 @@
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { CommonCorrelationsQueryParams } from '../../../../common/correlations/types';
import {
SPAN_DURATION,
TRANSACTION_DURATION,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { Setup } from '../../../lib/helpers/setup_request';
import { getCommonCorrelationsQuery } from './get_common_correlations_query';

View file

@ -5,6 +5,7 @@
* 2.0.
*/
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import type {
FieldValuePair,
CommonCorrelationsQueryParams,
@ -13,7 +14,6 @@ import { TERMS_SIZE } from '../../../../common/correlations/constants';
import { splitAllSettledPromises } from '../utils';
import { Setup } from '../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../common/processor_event';
import { getCommonCorrelationsQuery } from './get_common_correlations_query';
export const fetchFieldValuePairs = async ({

View file

@ -5,13 +5,13 @@
* 2.0.
*/
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
CommonCorrelationsQueryParams,
FieldValuePair,
} from '../../../../../common/correlations/types';
import { BooleanFieldStats } from '../../../../../common/correlations/field_stats_types';
import { Setup } from '../../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { getCommonCorrelationsQuery } from '../get_common_correlations_query';
export const fetchBooleanFieldStats = async ({

View file

@ -5,6 +5,7 @@
* 2.0.
*/
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
CommonCorrelationsQueryParams,
FieldValuePair,
@ -14,7 +15,6 @@ import {
TopValueBucket,
} from '../../../../../common/correlations/field_stats_types';
import { Setup } from '../../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { getCommonCorrelationsQuery } from '../get_common_correlations_query';
export const fetchFieldValueFieldStats = async ({

View file

@ -7,6 +7,7 @@
import { chunk } from 'lodash';
import { ES_FIELD_TYPES } from '@kbn/field-types';
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
CommonCorrelationsQueryParams,
FieldValuePair,
@ -16,7 +17,6 @@ import { fetchKeywordFieldStats } from './fetch_keyword_field_stats';
import { fetchNumericFieldStats } from './fetch_numeric_field_stats';
import { fetchBooleanFieldStats } from './fetch_boolean_field_stats';
import { Setup } from '../../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../../common/processor_event';
export const fetchFieldsStats = async ({
setup,

View file

@ -5,13 +5,13 @@
* 2.0.
*/
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
CommonCorrelationsQueryParams,
FieldValuePair,
} from '../../../../../common/correlations/types';
import { KeywordFieldStats } from '../../../../../common/correlations/field_stats_types';
import { Setup } from '../../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { getCommonCorrelationsQuery } from '../get_common_correlations_query';
export const fetchKeywordFieldStats = async ({

View file

@ -6,6 +6,7 @@
*/
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
NumericFieldStats,
TopValueBucket,
@ -15,7 +16,6 @@ import {
FieldValuePair,
} from '../../../../../common/correlations/types';
import { Setup } from '../../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { getCommonCorrelationsQuery } from '../get_common_correlations_query';
export const fetchNumericFieldStats = async ({

View file

@ -12,6 +12,7 @@ import { i18n } from '@kbn/i18n';
import { toNumberRt } from '@kbn/io-ts-utils';
import { termQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { isActivePlatinumLicense } from '../../../common/license_check';
import { setupRequest } from '../../lib/helpers/setup_request';
@ -19,7 +20,6 @@ import { setupRequest } from '../../lib/helpers/setup_request';
import { createApmServerRoute } from '../apm_routes/create_apm_server_route';
import { environmentRt, kueryRt, rangeRt } from '../default_api_types';
import { fetchDurationFieldCandidates } from './queries/fetch_duration_field_candidates';
import { ProcessorEvent } from '../../../common/processor_event';
import {
SERVICE_NAME,
TRANSACTION_NAME,

View file

@ -5,8 +5,8 @@
* 2.0.
*/
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { LatencyDistributionChartType } from '../../../../common/latency_distribution_chart_types';
import { ProcessorEvent } from '../../../../common/processor_event';
const {
transactionLatency,

View file

@ -6,8 +6,8 @@
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { maybe } from '../../../common/utils/maybe';
import { ProcessorEvent } from '../../../common/processor_event';
import { SPAN_DESTINATION_SERVICE_RESOURCE } from '../../../common/elasticsearch_fieldnames';
import { Setup } from '../../lib/helpers/setup_request';

View file

@ -10,6 +10,7 @@ import {
rangeQuery,
termQuery,
} from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
EVENT_OUTCOME,
SPAN_DESTINATION_SERVICE_RESOURCE,
@ -18,7 +19,6 @@ import {
} from '../../../common/elasticsearch_fieldnames';
import { Environment } from '../../../common/environment_rt';
import { EventOutcome } from '../../../common/event_outcome';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
import { getOffsetInMs } from '../../../common/utils/get_offset_in_ms';
import {

View file

@ -12,6 +12,7 @@ import {
termsQuery,
} from '@kbn/observability-plugin/server';
import { compact, keyBy } from 'lodash';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
AGENT_NAME,
EVENT_OUTCOME,
@ -27,7 +28,6 @@ import {
} from '../../../common/elasticsearch_fieldnames';
import { Environment } from '../../../common/environment_rt';
import { EventOutcome } from '../../../common/event_outcome';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
import { AgentName } from '../../../typings/es_schemas/ui/fields/agent';
import { Setup } from '../../lib/helpers/setup_request';

View file

@ -6,7 +6,7 @@
*/
import { termQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Setup } from '../../lib/helpers/setup_request';
import {
SERVICE_NAME,

View file

@ -6,12 +6,12 @@
*/
import { rangeQuery, termQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
SERVICE_ENVIRONMENT,
SERVICE_NAME,
} from '../../../common/elasticsearch_fieldnames';
import { ENVIRONMENT_NOT_DEFINED } from '../../../common/environment_filter_values';
import { ProcessorEvent } from '../../../common/processor_event';
import { getProcessorEventForTransactions } from '../../lib/helpers/transactions';
import { Setup } from '../../lib/helpers/setup_request';
import { Environment } from '../../../common/environment_rt';

View file

@ -7,7 +7,7 @@
import { getBuckets } from './get_buckets';
import { APMConfig } from '../../..';
import { ProcessorEvent } from '../../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
describe('get buckets', () => {
let clientSpy: jest.Mock;

View file

@ -10,11 +10,11 @@ import {
kqlQuery,
termQuery,
} from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
ERROR_GROUP_ID,
SERVICE_NAME,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { environmentQuery } from '../../../../common/utils/environment_query';
import { Setup } from '../../../lib/helpers/setup_request';

View file

@ -17,6 +17,7 @@ import {
kqlQuery,
termQuery,
} from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { keyBy } from 'lodash';
import {
ERROR_GROUP_ID,
@ -24,7 +25,6 @@ import {
TRANSACTION_NAME,
TRANSACTION_TYPE,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { environmentQuery } from '../../../../common/utils/environment_query';
import { Setup } from '../../../lib/helpers/setup_request';
import { getBucketSize } from '../../../lib/helpers/get_bucket_size';

View file

@ -11,13 +11,13 @@ import {
termQuery,
termsQuery,
} from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate';
import { Coordinate } from '../../../../typings/timeseries';
import {
ERROR_GROUP_ID,
SERVICE_NAME,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { environmentQuery } from '../../../../common/utils/environment_query';
import { getBucketSize } from '../../../lib/helpers/get_bucket_size';
import { Setup } from '../../../lib/helpers/setup_request';

View file

@ -11,6 +11,7 @@ import {
rangeQuery,
termQuery,
} from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
ERROR_CULPRIT,
ERROR_EXC_HANDLED,
@ -22,7 +23,6 @@ import {
TRANSACTION_NAME,
TRANSACTION_TYPE,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { environmentQuery } from '../../../../common/utils/environment_query';
import { getErrorName } from '../../../lib/helpers/get_error_name';
import { Setup } from '../../../lib/helpers/setup_request';

View file

@ -6,13 +6,13 @@
*/
import { rangeQuery, kqlQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { asMutableArray } from '../../../../common/utils/as_mutable_array';
import {
ERROR_GROUP_ID,
SERVICE_NAME,
TRANSACTION_SAMPLED,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { environmentQuery } from '../../../../common/utils/environment_query';
import { getTransaction } from '../../transactions/get_transaction';
import { Setup } from '../../../lib/helpers/setup_request';

View file

@ -6,12 +6,12 @@
*/
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
ERROR_ID,
SPAN_ID,
TRANSACTION_ID,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import type { APMEventClient } from '../../lib/helpers/create_es_client/create_apm_event_client';
export async function getEventMetadata({

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Setup } from '../../lib/helpers/setup_request';
// Note: this logic is duplicated in tutorials/apm/envs/on_prem

View file

@ -6,9 +6,9 @@
*/
import { rangeQuery, kqlQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Setup } from '../../lib/helpers/setup_request';
import { environmentQuery } from '../../../common/utils/environment_query';
import { ProcessorEvent } from '../../../common/processor_event';
import {
SERVICE_NAME,
CONTAINER_ID,

View file

@ -8,6 +8,7 @@
import { sum, round } from 'lodash';
import { euiLightVars as theme } from '@kbn/ui-theme';
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { isFiniteNumber } from '../../../../../../common/utils/is_finite_number';
import { Setup } from '../../../../../lib/helpers/setup_request';
import { getMetricsDateHistogramParams } from '../../../../../lib/helpers/metrics';
@ -27,7 +28,6 @@ import {
environmentQuery,
serviceNodeNameQuery,
} from '../../../../../../common/utils/environment_query';
import { ProcessorEvent } from '../../../../../../common/processor_event';
export async function fetchAndTransformGcMetrics({
environment,

View file

@ -10,6 +10,7 @@ import { euiLightVars as theme } from '@kbn/ui-theme';
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
import { AggregationOptionsByType } from '@kbn/core/types/elasticsearch';
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { getVizColorForIndex } from '../../../common/viz_colors';
import { APMEventESSearchRequest } from '../../lib/helpers/create_es_client/create_apm_event_client';
import { getMetricsDateHistogramParams } from '../../lib/helpers/metrics';
@ -19,7 +20,6 @@ import {
environmentQuery,
serviceNodeNameQuery,
} from '../../../common/utils/environment_query';
import { ProcessorEvent } from '../../../common/processor_event';
import { SERVICE_NAME } from '../../../common/elasticsearch_fieldnames';
type MetricsAggregationMap = Unionize<{

View file

@ -6,7 +6,7 @@
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { SERVICE_NAME } from '../../../common/elasticsearch_fieldnames';
import { Setup } from '../../lib/helpers/setup_request';
import { getProcessorEventForTransactions } from '../../lib/helpers/transactions';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Setup } from '../../lib/helpers/setup_request';
export async function getHasData({ setup }: { setup: Setup }) {

View file

@ -6,13 +6,13 @@
*/
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { AgentName } from '../../../typings/es_schemas/ui/fields/agent';
import {
AGENT_NAME,
SERVICE_ENVIRONMENT,
SERVICE_NAME,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { Setup } from '../../lib/helpers/setup_request';
export async function lookupServices({

View file

@ -6,7 +6,7 @@
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { TRACE_ID } from '../../../common/elasticsearch_fieldnames';
import {
ConnectionNode,

View file

@ -8,7 +8,7 @@
import { Logger } from '@kbn/core/server';
import { chunk } from 'lodash';
import { rangeQuery, termsQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
AGENT_NAME,
SERVICE_ENVIRONMENT,

View file

@ -6,6 +6,7 @@
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
EVENT_OUTCOME,
SPAN_DESTINATION_SERVICE_RESOURCE,
@ -13,7 +14,6 @@ import {
SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM,
} from '../../../common/elasticsearch_fieldnames';
import { EventOutcome } from '../../../common/event_outcome';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
import { withApmSpan } from '../../utils/with_apm_span';
import { calculateThroughputWithRange } from '../../lib/helpers/calculate_throughput';

View file

@ -7,6 +7,7 @@
import { sumBy } from 'lodash';
import { ESFilter } from '@kbn/core/types/elasticsearch';
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
METRIC_CGROUP_MEMORY_USAGE_BYTES,
METRIC_SYSTEM_CPU_PERCENT,
@ -15,7 +16,6 @@ import {
SERVICE_NAME,
TRANSACTION_TYPE,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { NodeStats } from '../../../common/service_map';
import {
TRANSACTION_PAGE_LOAD,

View file

@ -8,6 +8,7 @@
import Boom from '@hapi/boom';
import { sortBy, take, uniq } from 'lodash';
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { asMutableArray } from '../../../common/utils/as_mutable_array';
import {
SERVICE_ENVIRONMENT,
@ -15,7 +16,6 @@ import {
SPAN_DESTINATION_SERVICE_RESOURCE,
TRACE_ID,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { SERVICE_MAP_TIMEOUT_ERROR } from '../../../common/service_map';
import { environmentQuery } from '../../../common/utils/environment_query';
import { Setup } from '../../lib/helpers/setup_request';

View file

@ -6,6 +6,7 @@
*/
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
METRIC_JAVA_HEAP_MEMORY_USED,
METRIC_JAVA_NON_HEAP_MEMORY_USED,
@ -19,7 +20,6 @@ import {
SERVICE_NAME,
SERVICE_NODE_NAME,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
import { Setup } from '../../lib/helpers/setup_request';

View file

@ -6,7 +6,7 @@
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
AGENT_NAME,
SERVICE_NAME,

View file

@ -6,7 +6,7 @@
*/
import { merge } from 'lodash';
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
METRICSET_NAME,
SERVICE_NAME,

View file

@ -7,6 +7,7 @@
import { AggregationOptionsByType } from '@kbn/core/types/elasticsearch';
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
METRIC_CGROUP_MEMORY_USAGE_BYTES,
METRIC_PROCESS_CPU_PERCENT,
@ -15,7 +16,6 @@ import {
SERVICE_NAME,
SERVICE_NODE_NAME,
} from '../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../common/processor_event';
import { SERVICE_NODE_NAME_MISSING } from '../../../../common/service_nodes';
import { Coordinate } from '../../../../typings/timeseries';
import { environmentQuery } from '../../../../common/utils/environment_query';

View file

@ -6,7 +6,7 @@
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
AGENT,
CLOUD,

View file

@ -6,7 +6,7 @@
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
AGENT_NAME,
CLOUD_PROVIDER,

View file

@ -6,6 +6,7 @@
*/
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Setup } from '../../lib/helpers/setup_request';
import {
HOST_NAME,
@ -16,7 +17,6 @@ import {
SERVICE_NAME,
SERVICE_NODE_NAME,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import {
environmentQuery,
serviceNodeNameQuery,

View file

@ -6,6 +6,7 @@
*/
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent';
import {
AGENT_NAME,
@ -13,7 +14,6 @@ import {
SERVICE_NAME,
} from '../../../../common/elasticsearch_fieldnames';
import { environmentQuery } from '../../../../common/utils/environment_query';
import { ProcessorEvent } from '../../../../common/processor_event';
import { Setup } from '../../../lib/helpers/setup_request';
import { serviceGroupQuery } from '../../../../common/utils/service_group_query';
import { ServiceGroup } from '../../../../common/service_groups';

View file

@ -6,10 +6,10 @@
*/
import { Logger } from '@kbn/logging';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { SERVICE_NAME } from '../../../../common/elasticsearch_fieldnames';
import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values';
import { Environment } from '../../../../common/environment_rt';
import { ProcessorEvent } from '../../../../common/processor_event';
import { joinByKey } from '../../../../common/utils/join_by_key';
import { ServiceGroup } from '../../../../common/service_groups';
import { Setup } from '../../../lib/helpers/setup_request';

View file

@ -9,6 +9,7 @@ import { Logger } from '@kbn/core/server';
import util from 'util';
import { ESFilter } from '@kbn/core/types/elasticsearch';
import { rangeQuery, kqlQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { maybe } from '../../../../common/utils/maybe';
import { ProfileStackFrame } from '../../../../typings/es_schemas/ui/profile';
import {
@ -16,7 +17,6 @@ import {
ProfileNode,
getValueTypeConfig,
} from '../../../../common/profiling';
import { ProcessorEvent } from '../../../../common/processor_event';
import {
PROFILE_STACK,
PROFILE_TOP_ID,

View file

@ -6,7 +6,7 @@
*/
import { mapKeys, mapValues } from 'lodash';
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
PROFILE_ID,
SERVICE_NAME,

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { ProcessorEvent } from '../../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Setup } from '../../../lib/helpers/setup_request';
import { SERVICE_NAME } from '../../../../common/elasticsearch_fieldnames';
import { AGENT_NAME } from '../../../../common/elasticsearch_fieldnames';

View file

@ -7,8 +7,8 @@
import * as t from 'io-ts';
import { compact } from 'lodash';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Setup } from '../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../common/processor_event';
import { filterOptionsRt } from './custom_link_types';
import { splitFilterValueByComma } from './helper';

View file

@ -5,6 +5,7 @@
* 2.0.
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { isEmpty } from 'lodash';
import {
PROCESSOR_EVENT,
@ -15,7 +16,6 @@ import {
TRACE_ID,
TRANSACTION_ID,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import type { SpanRaw } from '../../../typings/es_schemas/raw/span_raw';
import type { TransactionRaw } from '../../../typings/es_schemas/raw/transaction_raw';
import { Setup } from '../../lib/helpers/setup_request';

View file

@ -5,6 +5,7 @@
* 2.0.
*/
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
SPAN_ID,
SPAN_LINKS,
@ -12,7 +13,6 @@ import {
TRANSACTION_ID,
PROCESSOR_EVENT,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { SpanRaw } from '../../../typings/es_schemas/raw/span_raw';
import { TransactionRaw } from '../../../typings/es_schemas/raw/transaction_raw';
import { Setup } from '../../lib/helpers/setup_request';

View file

@ -5,6 +5,7 @@
* 2.0.
*/
import { kqlQuery, rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { chunk, compact, isEmpty, keyBy } from 'lodash';
import {
SERVICE_NAME,
@ -21,7 +22,6 @@ import {
AGENT_NAME,
} from '../../../common/elasticsearch_fieldnames';
import { Environment } from '../../../common/environment_rt';
import { ProcessorEvent } from '../../../common/processor_event';
import { SpanLinkDetails } from '../../../common/span_links';
import { SpanLink } from '../../../typings/es_schemas/raw/fields/span_links';
import { SpanRaw } from '../../../typings/es_schemas/raw/span_raw';

View file

@ -4,7 +4,7 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { getProcessorEventForTransactions } from '../../lib/helpers/transactions';
import { Setup } from '../../lib/helpers/setup_request';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { rangeQuery, termQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '../../../common/processor_event';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { getProcessorEventForTransactions } from '../../lib/helpers/transactions';
import { SERVICE_NAME } from '../../../common/elasticsearch_fieldnames';
import { Setup } from '../../lib/helpers/setup_request';

View file

@ -10,6 +10,7 @@ import {
Sort,
} from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { rangeQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
ERROR_LOG_LEVEL,
PARENT_ID,
@ -17,7 +18,6 @@ import {
TRACE_ID,
TRANSACTION_DURATION,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { Setup } from '../../lib/helpers/setup_request';
import { getLinkedChildrenCountBySpanId } from '../span_links/get_linked_children';

View file

@ -9,10 +9,10 @@ import {
kqlQuery,
termsQuery,
} from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { Environment } from '../../../common/environment_rt';
import { Setup } from '../../lib/helpers/setup_request';
import { TraceSearchType } from '../../../common/trace_explorer';
import { ProcessorEvent } from '../../../common/processor_event';
import { environmentQuery } from '../../../common/utils/environment_query';
import {
PARENT_ID,

View file

@ -7,8 +7,8 @@
import { flatten, orderBy, last } from 'lodash';
import { rangeQuery, kqlQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { asPercent } from '../../../../common/utils/formatters';
import { ProcessorEvent } from '../../../../common/processor_event';
import {
SERVICE_NAME,
SPAN_SUBTYPE,

View file

@ -6,12 +6,12 @@
*/
import { rangeQuery, termQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
TRACE_ID,
TRANSACTION_ID,
} from '../../../../common/elasticsearch_fieldnames';
import { Setup } from '../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../common/processor_event';
import { asMutableArray } from '../../../../common/utils/as_mutable_array';
export async function getTransaction({

View file

@ -5,12 +5,12 @@
* 2.0.
*/
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
TRACE_ID,
PARENT_ID,
} from '../../../../common/elasticsearch_fieldnames';
import { Setup } from '../../../lib/helpers/setup_request';
import { ProcessorEvent } from '../../../../common/processor_event';
export async function getRootTransactionByTraceId(
traceId: string,

View file

@ -6,6 +6,7 @@
*/
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { rangeQuery, kqlQuery } from '@kbn/observability-plugin/server';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { withApmSpan } from '../../../../utils/with_apm_span';
import {
SERVICE_NAME,
@ -15,7 +16,6 @@ import {
TRANSACTION_SAMPLED,
TRANSACTION_TYPE,
} from '../../../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../../../common/processor_event';
import { environmentQuery } from '../../../../../common/utils/environment_query';
import { Setup } from '../../../../lib/helpers/setup_request';

View file

@ -9,6 +9,8 @@ export type { AsDuration, AsPercent, TimeUnitChar } from './utils/formatters';
export { formatDurationFromTimeUnitChar } from './utils/formatters';
export { ProcessorEvent } from './processor_event';
export {
enableInspectEsQueries,
maxSuggestions,

View file

@ -15,6 +15,7 @@ import {
TypedLensByValueInput,
} from '@kbn/lens-plugin/public';
import { EuiText } from '@elastic/eui';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { TRANSACTION_PAGE_LOAD } from '../../../../../common/transaction_types';
import {
PROCESSOR_EVENT,
@ -23,7 +24,6 @@ import {
import { getEsFilter } from '../../../../services/data/get_es_filter';
import { useKibanaServices } from '../../../../hooks/use_kibana_services';
import type { UxUIFilters } from '../../../../../typings/ui_filters';
import { ProcessorEvent } from '../../../../../common/processor_event';
const BUCKET_SIZE = 9;

View file

@ -80,7 +80,7 @@ export function coreWebVitalsQuery(
uiFilters?: UxUIFilters,
percentile = PERCENTILE_DEFAULT
) {
const setup: SetupUX = { uiFilters: uiFilters ? uiFilters : {} };
const setup: SetupUX = { uiFilters: uiFilters ?? {} };
const projection = getRumPageLoadTransactionsProjection({
setup,

View file

@ -5,13 +5,13 @@
* 2.0.
*/
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import {
AGENT_NAME,
PROCESSOR_EVENT,
SERVICE_LANGUAGE_NAME,
TRANSACTION_TYPE,
} from '../../../common/elasticsearch_fieldnames';
import { ProcessorEvent } from '../../../common/processor_event';
import { TRANSACTION_PAGE_LOAD } from '../../../common/transaction_types';
import { SetupUX } from '../../../typings/ui_filters';
import { getEsFilter } from './get_es_filter';

Some files were not shown because too many files have changed in this diff Show more