mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
* [APM] Kuery bar gives invalid suggestions (#105132) * adding method to support terms_agg * adding more filters to kuery bar * addressing PR comments * fixing docs * addressing PR comments * moving file to common * addressing PR comments Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # x-pack/plugins/apm/server/lib/search_strategies/correlations/get_query_with_params.ts * removing extra line Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com> Co-authored-by: cauemarcondes <caue.marcondes@elastic.co>
This commit is contained in:
parent
627449e114
commit
37c61092c9
71 changed files with 162 additions and 152 deletions
|
@ -19,6 +19,7 @@ export interface QuerySuggestionGetFnArgs
|
|||
| [boolFilter](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.boolfilter.md) | <code>any</code> | |
|
||||
| [indexPatterns](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.indexpatterns.md) | <code>IIndexPattern[]</code> | |
|
||||
| [language](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.language.md) | <code>string</code> | |
|
||||
| [method](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.method.md) | <code>ValueSuggestionsMethod</code> | |
|
||||
| [query](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.query.md) | <code>string</code> | |
|
||||
| [selectionEnd](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.selectionend.md) | <code>number</code> | |
|
||||
| [selectionStart](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.selectionstart.md) | <code>number</code> | |
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [QuerySuggestionGetFnArgs](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.md) > [method](./kibana-plugin-plugins-data-public.querysuggestiongetfnargs.method.md)
|
||||
|
||||
## QuerySuggestionGetFnArgs.method property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
method?: ValueSuggestionsMethod;
|
||||
```
|
|
@ -12,6 +12,8 @@ export const KIBANA_USER_QUERY_LANGUAGE_KEY = 'kibana.userQueryLanguage';
|
|||
/** @public **/
|
||||
export const INDEX_PATTERN_SAVED_OBJECT_TYPE = 'index-pattern';
|
||||
|
||||
export type ValueSuggestionsMethod = 'terms_enum' | 'terms_agg';
|
||||
|
||||
export const UI_SETTINGS = {
|
||||
META_FIELDS: 'metaFields',
|
||||
DOC_HIGHLIGHT: 'doc_table:highlight',
|
||||
|
|
|
@ -35,7 +35,7 @@ export const setupGetValueSuggestions: KqlQuerySuggestionProvider = (
|
|||
.getStartServices()
|
||||
.then(([_, __, dataStart]) => dataStart.autocomplete);
|
||||
return async (
|
||||
{ indexPatterns, boolFilter, useTimeRange, signal },
|
||||
{ indexPatterns, boolFilter, useTimeRange, signal, method },
|
||||
{ start, end, prefix, suffix, fieldName, nestedPath }
|
||||
): Promise<QuerySuggestion[]> => {
|
||||
const fullFieldName = nestedPath ? `${nestedPath}.${fieldName}` : fieldName;
|
||||
|
@ -59,6 +59,7 @@ export const setupGetValueSuggestions: KqlQuerySuggestionProvider = (
|
|||
boolFilter,
|
||||
useTimeRange,
|
||||
signal,
|
||||
method,
|
||||
}).then((valueSuggestions) => {
|
||||
const quotedValues = valueSuggestions.map((value) =>
|
||||
typeof value === 'string' ? `"${escapeQuotes(value)}"` : `${value}`
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ValueSuggestionsMethod } from '../../../common';
|
||||
import { IFieldType, IIndexPattern } from '../../../common/index_patterns';
|
||||
|
||||
export enum QuerySuggestionTypes {
|
||||
|
@ -30,6 +31,7 @@ export interface QuerySuggestionGetFnArgs {
|
|||
signal?: AbortSignal;
|
||||
useTimeRange?: boolean;
|
||||
boolFilter?: any;
|
||||
method?: ValueSuggestionsMethod;
|
||||
}
|
||||
|
||||
/** @public **/
|
||||
|
|
|
@ -9,7 +9,13 @@
|
|||
import dateMath from '@elastic/datemath';
|
||||
import { memoize } from 'lodash';
|
||||
import { CoreSetup } from 'src/core/public';
|
||||
import { IIndexPattern, IFieldType, UI_SETTINGS, buildQueryFromFilters } from '../../../common';
|
||||
import {
|
||||
IIndexPattern,
|
||||
IFieldType,
|
||||
UI_SETTINGS,
|
||||
buildQueryFromFilters,
|
||||
ValueSuggestionsMethod,
|
||||
} from '../../../common';
|
||||
import { TimefilterSetup } from '../../query';
|
||||
import { AutocompleteUsageCollector } from '../collectors';
|
||||
|
||||
|
@ -22,6 +28,7 @@ interface ValueSuggestionsGetFnArgs {
|
|||
useTimeRange?: boolean;
|
||||
boolFilter?: any[];
|
||||
signal?: AbortSignal;
|
||||
method?: ValueSuggestionsMethod;
|
||||
}
|
||||
|
||||
const getAutocompleteTimefilter = (
|
||||
|
@ -54,12 +61,25 @@ export const setupValueSuggestionProvider = (
|
|||
}
|
||||
|
||||
const requestSuggestions = memoize(
|
||||
(index: string, field: IFieldType, query: string, filters: any = [], signal?: AbortSignal) => {
|
||||
(
|
||||
index: string,
|
||||
field: IFieldType,
|
||||
query: string,
|
||||
filters: any = [],
|
||||
signal?: AbortSignal,
|
||||
method?: ValueSuggestionsMethod
|
||||
) => {
|
||||
usageCollector?.trackRequest();
|
||||
return core.http
|
||||
.fetch(`/api/kibana/suggestions/values/${index}`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ query, field: field.name, fieldMeta: field?.toSpec?.(), filters }),
|
||||
body: JSON.stringify({
|
||||
query,
|
||||
field: field.name,
|
||||
fieldMeta: field?.toSpec?.(),
|
||||
filters,
|
||||
method,
|
||||
}),
|
||||
signal,
|
||||
})
|
||||
.then((r) => {
|
||||
|
@ -77,6 +97,7 @@ export const setupValueSuggestionProvider = (
|
|||
useTimeRange,
|
||||
boolFilter,
|
||||
signal,
|
||||
method,
|
||||
}: ValueSuggestionsGetFnArgs): Promise<any[]> => {
|
||||
const shouldSuggestValues = core!.uiSettings.get<boolean>(
|
||||
UI_SETTINGS.FILTERS_EDITOR_SUGGEST_VALUES
|
||||
|
@ -98,7 +119,7 @@ export const setupValueSuggestionProvider = (
|
|||
const filters = [...(boolFilter ? boolFilter : []), ...filterQuery];
|
||||
try {
|
||||
usageCollector?.trackCall();
|
||||
return await requestSuggestions(title, field, query, filters, signal);
|
||||
return await requestSuggestions(title, field, query, filters, signal, method);
|
||||
} catch (e) {
|
||||
if (!signal?.aborted) {
|
||||
usageCollector?.trackError();
|
||||
|
|
|
@ -2184,6 +2184,10 @@ export interface QuerySuggestionGetFnArgs {
|
|||
indexPatterns: IIndexPattern[];
|
||||
// (undocumented)
|
||||
language: string;
|
||||
// Warning: (ae-forgotten-export) The symbol "ValueSuggestionsMethod" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
method?: ValueSuggestionsMethod;
|
||||
// (undocumented)
|
||||
query: string;
|
||||
// (undocumented)
|
||||
|
|
|
@ -33,6 +33,9 @@ export function registerValueSuggestionsRoute(router: IRouter, config$: Observab
|
|||
query: schema.string(),
|
||||
filters: schema.maybe(schema.any()),
|
||||
fieldMeta: schema.maybe(schema.any()),
|
||||
method: schema.maybe(
|
||||
schema.oneOf([schema.literal('terms_agg'), schema.literal('terms_enum')])
|
||||
),
|
||||
},
|
||||
{ unknowns: 'allow' }
|
||||
),
|
||||
|
@ -40,13 +43,13 @@ export function registerValueSuggestionsRoute(router: IRouter, config$: Observab
|
|||
},
|
||||
async (context, request, response) => {
|
||||
const config = await config$.pipe(first()).toPromise();
|
||||
const { field: fieldName, query, filters, fieldMeta } = request.body;
|
||||
const { field: fieldName, query, filters, fieldMeta, method } = request.body;
|
||||
const { index } = request.params;
|
||||
const abortSignal = getRequestAbortedSignal(request.events.aborted$);
|
||||
|
||||
try {
|
||||
const fn =
|
||||
config.autocomplete.valueSuggestions.method === 'terms_enum'
|
||||
(method ?? config.autocomplete.valueSuggestions.method) === 'terms_enum'
|
||||
? termsEnumSuggestions
|
||||
: termsAggSuggestions;
|
||||
const body = await fn(
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { SERVICE_ENVIRONMENT } from '../../common/elasticsearch_fieldnames';
|
||||
import { ENVIRONMENT_NOT_DEFINED } from '../../common/environment_filter_values';
|
||||
import { environmentQuery } from './queries';
|
||||
import { SERVICE_ENVIRONMENT } from '../elasticsearch_fieldnames';
|
||||
import { ENVIRONMENT_NOT_DEFINED } from '../environment_filter_values';
|
||||
import { environmentQuery } from './environment_query';
|
||||
|
||||
describe('environmentQuery', () => {
|
||||
describe('when environment is undefined', () => {
|
|
@ -5,15 +5,12 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { ESFilter } from '../../../../../src/core/types/elasticsearch';
|
||||
import { SERVICE_ENVIRONMENT } from '../../common/elasticsearch_fieldnames';
|
||||
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
||||
import { SERVICE_ENVIRONMENT } from '../elasticsearch_fieldnames';
|
||||
import {
|
||||
ENVIRONMENT_ALL,
|
||||
ENVIRONMENT_NOT_DEFINED,
|
||||
} from '../../common/environment_filter_values';
|
||||
export { kqlQuery, rangeQuery } from '../../../observability/server';
|
||||
|
||||
type QueryDslQueryContainer = ESFilter;
|
||||
} from '../environment_filter_values';
|
||||
|
||||
export function environmentQuery(
|
||||
environment?: string
|
|
@ -14,6 +14,7 @@ import {
|
|||
TRANSACTION_TYPE,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { UIProcessorEvent } from '../../../../common/processor_event';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { IUrlParams } from '../../../context/url_params_context/types';
|
||||
|
||||
export function getBoolFilter({
|
||||
|
@ -35,6 +36,14 @@ export function getBoolFilter({
|
|||
});
|
||||
}
|
||||
|
||||
boolFilter.push(...environmentQuery(urlParams.environment));
|
||||
|
||||
if (urlParams.transactionType) {
|
||||
boolFilter.push({
|
||||
term: { [TRANSACTION_TYPE]: urlParams.transactionType },
|
||||
});
|
||||
}
|
||||
|
||||
switch (processorEvent) {
|
||||
case 'transaction':
|
||||
boolFilter.push({
|
||||
|
|
|
@ -101,6 +101,7 @@ export function KueryBar(props: { prepend?: React.ReactNode | string }) {
|
|||
selectionStart,
|
||||
selectionEnd: selectionStart,
|
||||
useTimeRange: true,
|
||||
method: 'terms_agg',
|
||||
})) || []
|
||||
)
|
||||
.filter((suggestion) => !startsWith(suggestion.text, 'span.'))
|
||||
|
|
|
@ -13,7 +13,8 @@ import {
|
|||
TRANSACTION_TYPE,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { environmentQuery, rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { AlertParams } from '../../../routes/alerts/chart_preview';
|
||||
import { getBucketSize } from '../../helpers/get_bucket_size';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
import { SERVICE_NAME } from '../../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { AlertParams } from '../../../routes/alerts/chart_preview';
|
||||
import { environmentQuery, rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { getBucketSize } from '../../helpers/get_bucket_size';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@ import {
|
|||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { AlertParams } from '../../../routes/alerts/chart_preview';
|
||||
import { environmentQuery, rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { getBucketSize } from '../../helpers/get_bucket_size';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
import {
|
||||
|
|
|
@ -28,7 +28,7 @@ import {
|
|||
SERVICE_NAME,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { environmentQuery } from '../../../server/utils/queries';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { getApmIndices } from '../settings/apm_indices/get_apm_indices';
|
||||
import { apmActionVariables } from './action_variables';
|
||||
import { alertingEsClient } from './alerting_es_client';
|
||||
|
|
|
@ -30,7 +30,7 @@ import {
|
|||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { getDurationFormatter } from '../../../common/utils/formatters';
|
||||
import { environmentQuery } from '../../../server/utils/queries';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { getApmIndices } from '../settings/apm_indices/get_apm_indices';
|
||||
import { apmActionVariables } from './action_variables';
|
||||
import { alertingEsClient } from './alerting_es_client';
|
||||
|
|
|
@ -32,7 +32,7 @@ import {
|
|||
import { EventOutcome } from '../../../common/event_outcome';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { asDecimalOrInteger } from '../../../common/utils/formatters';
|
||||
import { environmentQuery } from '../../../server/utils/queries';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { getApmIndices } from '../settings/apm_indices/get_apm_indices';
|
||||
import { apmActionVariables } from './action_variables';
|
||||
import { alertingEsClient } from './alerting_es_client';
|
||||
|
|
|
@ -11,7 +11,7 @@ import { snakeCase } from 'lodash';
|
|||
import Boom from '@hapi/boom';
|
||||
import { ML_ERRORS } from '../../../common/anomaly_detection';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { environmentQuery } from '../../../server/utils/queries';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import {
|
||||
TRANSACTION_DURATION,
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
import { ESFilter } from '../../../../../../src/core/types/elasticsearch';
|
||||
import { environmentQuery, rangeQuery, kqlQuery } from '../../utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import {
|
||||
SERVICE_NAME,
|
||||
TRANSACTION_NAME,
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ENVIRONMENT_NOT_DEFINED } from '../../../common/environment_filter_values';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
|
||||
|
|
|
@ -11,11 +11,8 @@ import {
|
|||
SERVICE_NAME,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
|
||||
export async function getBuckets({
|
||||
|
|
|
@ -12,11 +12,8 @@ import {
|
|||
TRANSACTION_SAMPLED,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
import { getTransaction } from '../transactions/get_transaction';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { SearchAggregatedTransactionSetting } from '../../../../common/aggregated_transactions';
|
||||
import { kqlQuery, rangeQuery } from '../../../../server/utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import {
|
||||
TRANSACTION_DURATION,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { SERVICE_NAME } from '../../../common/elasticsearch_fieldnames';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
TRANSACTION_REQUEST,
|
||||
} from '../../../common/transaction_types';
|
||||
import { TRANSACTION_TYPE } from '../../../common/elasticsearch_fieldnames';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { calculateThroughput } from '../helpers/calculate_throughput';
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
TRANSACTION_TYPE,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { TRANSACTION_PAGE_LOAD } from '../../../common/transaction_types';
|
||||
|
||||
export async function hasRumData({
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
} from '../../../../common/ux_ui_filter';
|
||||
import { ESFilter } from '../../../../../../../src/core/types/elasticsearch';
|
||||
import { UxUIFilters } from '../../../../typings/ui_filters';
|
||||
import { environmentQuery } from '../../../utils/queries';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
|
||||
export function getEsFilter(uiFilters: UxUIFilters, exclude?: boolean) {
|
||||
const localFilterValues = uiFilters;
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
TRANSACTION_NAME,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import type { SearchServiceParams } from '../../../../common/search_strategies/correlations/types';
|
||||
import { environmentQuery as getEnvironmentQuery } from '../../../utils/queries';
|
||||
import { environmentQuery as getEnvironmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
|
||||
const getPercentileThresholdValueQuery = (
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { TRACE_ID } from '../../../common/elasticsearch_fieldnames';
|
||||
import {
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
TRANSACTION_PAGE_LOAD,
|
||||
TRANSACTION_REQUEST,
|
||||
} from '../../../common/transaction_types';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { withApmSpan } from '../../utils/with_apm_span';
|
||||
import { getMlJobsWithAPMGroup } from '../anomaly_detection/get_ml_jobs_with_apm_group';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { getServicesProjection } from '../../projections/services';
|
||||
import { mergeProjection } from '../../projections/util/merge_projection';
|
||||
import { environmentQuery } from '../../../server/utils/queries';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { withApmSpan } from '../../utils/with_apm_span';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
import {
|
||||
|
|
|
@ -19,7 +19,8 @@ import {
|
|||
TRANSACTION_PAGE_LOAD,
|
||||
TRANSACTION_REQUEST,
|
||||
} from '../../../common/transaction_types';
|
||||
import { environmentQuery, rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { withApmSpan } from '../../utils/with_apm_span';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
|
|
|
@ -17,7 +17,8 @@ import {
|
|||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { SERVICE_MAP_TIMEOUT_ERROR } from '../../../common/service_map';
|
||||
import { environmentQuery, rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
|
||||
const MAX_TRACES_TO_INSPECT = 1000;
|
||||
|
|
|
@ -12,7 +12,8 @@ import {
|
|||
SERVICE_NAME,
|
||||
SERVICE_VERSION,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { environmentQuery, rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
|
||||
import { ResponseError } from '@elastic/elasticsearch/lib/errors';
|
||||
import { ElasticsearchClient, Logger } from 'kibana/server';
|
||||
import { environmentQuery, rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
unwrapEsResponse,
|
||||
WrappedElasticsearchClientError,
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
AGENT_NAME,
|
||||
SERVICE_NAME,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@ import {
|
|||
SERVICE_NAME,
|
||||
TRANSACTION_TYPE,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { environmentQuery, rangeQuery } from '../../utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
|
||||
export async function getServiceAlerts({
|
||||
ruleDataClient,
|
||||
|
|
|
@ -21,7 +21,8 @@ import {
|
|||
SPAN_TYPE,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { environmentQuery, rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { joinByKey } from '../../../../common/utils/join_by_key';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
import { withApmSpan } from '../../../utils/with_apm_span';
|
||||
|
|
|
@ -14,7 +14,8 @@ import {
|
|||
SPAN_DESTINATION_SERVICE_RESPONSE_TIME_SUM,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { environmentQuery, rangeQuery } from '../../../../server/utils/queries';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { getBucketSize } from '../../helpers/get_bucket_size';
|
||||
import { EventOutcome } from '../../../../common/event_outcome';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
|
|
|
@ -13,11 +13,8 @@ import {
|
|||
TRANSACTION_TYPE,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { getBucketSize } from '../../helpers/get_bucket_size';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
|
||||
|
|
|
@ -14,11 +14,8 @@ import {
|
|||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../common/i18n';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { getErrorName } from '../../helpers/get_error_name';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
|
||||
|
|
|
@ -9,11 +9,8 @@ import { ValuesType } from 'utility-types';
|
|||
import { orderBy } from 'lodash';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../common/i18n';
|
||||
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import {
|
||||
ERROR_EXC_MESSAGE,
|
||||
|
|
|
@ -10,7 +10,8 @@ import {
|
|||
SERVICE_NODE_NAME,
|
||||
TRANSACTION_TYPE,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { environmentQuery, kqlQuery, rangeQuery } from '../../utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@ import {
|
|||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../../../common/service_nodes';
|
||||
import { Coordinate } from '../../../../typings/timeseries';
|
||||
import { environmentQuery, kqlQuery, rangeQuery } from '../../../utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { getBucketSize } from '../../helpers/get_bucket_size';
|
||||
import { Setup } from '../../helpers/setup_request';
|
||||
import {
|
||||
|
|
|
@ -14,7 +14,8 @@ import { EventOutcome } from '../../../../common/event_outcome';
|
|||
import { LatencyAggregationType } from '../../../../common/latency_aggregation_types';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../../../common/service_nodes';
|
||||
import { Coordinate } from '../../../../typings/timeseries';
|
||||
import { environmentQuery, kqlQuery, rangeQuery } from '../../../utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
|
|
|
@ -20,7 +20,7 @@ import {
|
|||
SERVICE_VERSION,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ContainerType } from '../../../common/service_metadata';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { TransactionRaw } from '../../../typings/es_schemas/raw/transaction_raw';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
HOST_OS_PLATFORM,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ContainerType } from '../../../common/service_metadata';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { TransactionRaw } from '../../../typings/es_schemas/raw/transaction_raw';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
|
|
|
@ -15,11 +15,8 @@ import {
|
|||
import { EventOutcome } from '../../../common/event_outcome';
|
||||
import { LatencyAggregationType } from '../../../common/latency_aggregation_types';
|
||||
import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_previous_period_coordinate';
|
||||
import {
|
||||
environmentQuery,
|
||||
kqlQuery,
|
||||
rangeQuery,
|
||||
} from '../../../server/utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { Coordinate } from '../../../typings/timeseries';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
|
|
|
@ -13,11 +13,8 @@ import {
|
|||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { EventOutcome } from '../../../common/event_outcome';
|
||||
import { LatencyAggregationType } from '../../../common/latency_aggregation_types';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
SERVICE_NAME,
|
||||
TRANSACTION_TYPE,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { OBSERVER_VERSION_MAJOR } from '../../../../common/elasticsearch_fieldnames';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
|
|
|
@ -15,11 +15,8 @@ import {
|
|||
TRANSACTION_PAGE_LOAD,
|
||||
TRANSACTION_REQUEST,
|
||||
} from '../../../../common/transaction_types';
|
||||
import {
|
||||
environmentQuery,
|
||||
kqlQuery,
|
||||
rangeQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
|
|
|
@ -11,7 +11,8 @@ import {
|
|||
SERVICE_ENVIRONMENT,
|
||||
SERVICE_NAME,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { environmentQuery, kqlQuery, rangeQuery } from '../../../utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
|
||||
|
|
|
@ -10,11 +10,8 @@ import {
|
|||
SERVICE_NAME,
|
||||
TRANSACTION_TYPE,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import {
|
||||
environmentQuery,
|
||||
kqlQuery,
|
||||
rangeQuery,
|
||||
} from '../../../server/utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
|
|
|
@ -21,11 +21,8 @@ import {
|
|||
PROFILE_TOP_ID,
|
||||
SERVICE_NAME,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import {
|
||||
rangeQuery,
|
||||
environmentQuery,
|
||||
kqlQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { APMEventClient } from '../../helpers/create_es_client/create_apm_event_client';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
import { withApmSpan } from '../../../utils/with_apm_span';
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
import { mapKeys, mapValues } from 'lodash';
|
||||
import { rangeQuery, environmentQuery } from '../../../../server/utils/queries';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import {
|
||||
PROFILE_ID,
|
||||
|
@ -17,7 +16,8 @@ import {
|
|||
} from '../../../../common/profiling';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
import { getBucketSize } from '../../helpers/get_bucket_size';
|
||||
import { kqlQuery } from '../../../utils/queries';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
|
||||
const configMap = mapValues(
|
||||
mapKeys(ProfilingValueType, (val, key) => val),
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
ERROR_LOG_LEVEL,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { APMError } from '../../../typings/es_schemas/ui/apm_error';
|
||||
import { rangeQuery } from '../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||
import { PromiseValueType } from '../../../typings/common';
|
||||
|
||||
|
|
|
@ -13,11 +13,8 @@ import {
|
|||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { EventOutcome } from '../../../common/event_outcome';
|
||||
import { offsetPreviousPeriodCoordinates } from '../../../common/utils/offset_previous_period_coordinate';
|
||||
import {
|
||||
environmentQuery,
|
||||
kqlQuery,
|
||||
rangeQuery,
|
||||
} from '../../../server/utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { Coordinate } from '../../../typings/timeseries';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
|
|
|
@ -18,11 +18,8 @@ import {
|
|||
TRANSACTION_BREAKDOWN_COUNT,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { getMetricsDateHistogramParams } from '../../helpers/metrics';
|
||||
import { MAX_KPIS } from './constants';
|
||||
import { getVizColorForIndex } from '../../../../common/viz_colors';
|
||||
|
|
|
@ -17,11 +17,8 @@ import {
|
|||
} from '../../../../../common/elasticsearch_fieldnames';
|
||||
import { ProcessorEvent } from '../../../../../common/processor_event';
|
||||
import { joinByKey } from '../../../../../common/utils/join_by_key';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
|
|
|
@ -15,11 +15,8 @@ import {
|
|||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../../helpers/aggregated_transactions';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
|
||||
export async function getDistributionMax({
|
||||
environment,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
||||
import { ESSearchResponse } from '../../../../../../../src/core/types/elasticsearch';
|
||||
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
||||
import { rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { asMutableArray } from '../../../../common/utils/as_mutable_array';
|
||||
import { withApmSpan } from '../../../utils/with_apm_span';
|
||||
import { Setup } from '../../helpers/setup_request';
|
||||
|
|
|
@ -14,11 +14,8 @@ import {
|
|||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { LatencyAggregationType } from '../../../../common/latency_aggregation_types';
|
||||
import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate';
|
||||
import {
|
||||
environmentQuery,
|
||||
kqlQuery,
|
||||
rangeQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
|
|
|
@ -13,11 +13,8 @@ import {
|
|||
TRANSACTION_RESULT,
|
||||
TRANSACTION_TYPE,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import {
|
||||
environmentQuery,
|
||||
kqlQuery,
|
||||
rangeQuery,
|
||||
} from '../../../../server/utils/queries';
|
||||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
TRACE_ID,
|
||||
TRANSACTION_ID,
|
||||
} from '../../../../common/elasticsearch_fieldnames';
|
||||
import { rangeQuery } from '../../../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||
import { asMutableArray } from '../../../../common/utils/as_mutable_array';
|
||||
|
|
|
@ -10,11 +10,8 @@ import {
|
|||
SERVICE_NAME,
|
||||
ERROR_GROUP_ID,
|
||||
} from '../../common/elasticsearch_fieldnames';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../observability/server';
|
||||
import { environmentQuery } from '../../common/utils/environment_query';
|
||||
import { ProcessorEvent } from '../../common/processor_event';
|
||||
|
||||
export function getErrorGroupsProjection({
|
||||
|
|
|
@ -11,11 +11,8 @@ import {
|
|||
SERVICE_NAME,
|
||||
SERVICE_NODE_NAME,
|
||||
} from '../../common/elasticsearch_fieldnames';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../observability/server';
|
||||
import { environmentQuery } from '../../common/utils/environment_query';
|
||||
import { SERVICE_NODE_NAME_MISSING } from '../../common/service_nodes';
|
||||
import { ProcessorEvent } from '../../common/processor_event';
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
TRANSACTION_TYPE,
|
||||
SERVICE_LANGUAGE_NAME,
|
||||
} from '../../common/elasticsearch_fieldnames';
|
||||
import { rangeQuery } from '../../server/utils/queries';
|
||||
import { rangeQuery } from '../../../observability/server';
|
||||
import { ProcessorEvent } from '../../common/processor_event';
|
||||
import { TRANSACTION_PAGE_LOAD } from '../../common/transaction_types';
|
||||
import { getEsFilter } from '../lib/rum_client/ui_filters/get_es_filter';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { Setup, SetupTimeRange } from '../../server/lib/helpers/setup_request';
|
||||
import { SERVICE_NAME } from '../../common/elasticsearch_fieldnames';
|
||||
import { rangeQuery, kqlQuery } from '../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../observability/server';
|
||||
import { ProcessorEvent } from '../../common/processor_event';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
|
||||
|
|
|
@ -12,11 +12,8 @@ import {
|
|||
TRANSACTION_TYPE,
|
||||
TRANSACTION_NAME,
|
||||
} from '../../common/elasticsearch_fieldnames';
|
||||
import {
|
||||
environmentQuery,
|
||||
rangeQuery,
|
||||
kqlQuery,
|
||||
} from '../../server/utils/queries';
|
||||
import { rangeQuery, kqlQuery } from '../../../observability/server';
|
||||
import { environmentQuery } from '../../common/utils/environment_query';
|
||||
import {
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue