diff --git a/src/plugins/home/server/services/sample_data/data_sets/otel/index.ts b/src/plugins/home/server/services/sample_data/data_sets/otel/index.ts index bc00d55c006d..bc162cd16121 100644 --- a/src/plugins/home/server/services/sample_data/data_sets/otel/index.ts +++ b/src/plugins/home/server/services/sample_data/data_sets/otel/index.ts @@ -14,6 +14,8 @@ import { // import { getSavedObjects } from './saved_objects'; import { servicesFieldMappings } from './services_field_mappings'; import { tracesFieldMappings } from './traces_field_mappings'; +import { metricsFieldMappings } from './metrics_field_mappings'; +import { logsFieldMappings } from './logs_field_mappings'; const otelDataName = i18n.translate('home.sampleData.otelSpecTitle', { defaultMessage: 'Sample Open-Telemetry logs, Traces and Metrics', @@ -47,11 +49,11 @@ export const otelSpecProvider = function (): SampleDatasetSchema { overwriteSavedObjectsWithWorkspaceId([], workspaceId), dataIndices: [ { - id: '00000001', + id: '000001', dataPath: path.join(__dirname, './sample_traces.json.gz'), fields: tracesFieldMappings, timeFields: ['startTime', 'endTime', 'traceGroupFields.endTime'], // TODO: add support for 'events.time' - currentTimeMarker: '2024-09-30T21:49:34', + currentTimeMarker: '2024-10-15T03:30:00', preserveDayOfWeekTimeOfDay: false, customPrefix: 'otel-v1-apm-span', }, @@ -60,10 +62,28 @@ export const otelSpecProvider = function (): SampleDatasetSchema { dataPath: path.join(__dirname, './sample_service_map.json.gz'), fields: servicesFieldMappings, timeFields: [], - currentTimeMarker: '2024-09-30T21:49:34', + currentTimeMarker: '2024-10-15T03:30:00', preserveDayOfWeekTimeOfDay: false, customPrefix: 'otel-v1-apm-service', }, + { + id: '2024.10.16', + dataPath: path.join(__dirname, './sample_metrics.json.gz'), + fields: metricsFieldMappings, + timeFields: ['@timestamp', 'exemplar.time', 'startTime', 'time', 'observedTimestamp'], + currentTimeMarker: '2024-10-15T03:30:00', + preserveDayOfWeekTimeOfDay: false, + customPrefix: 'ss4o_metrics-otel', + }, + { + id: '2024.10.16', + dataPath: path.join(__dirname, './sample_logs.json.gz'), + fields: logsFieldMappings, + timeFields: ['time', 'observedTime'], + currentTimeMarker: '2024-10-15T03:30:00', + preserveDayOfWeekTimeOfDay: false, + customPrefix: 'otel-events', + }, ], status: 'not_installed', }; diff --git a/src/plugins/home/server/services/sample_data/data_sets/otel/logs_field_mappings.ts b/src/plugins/home/server/services/sample_data/data_sets/otel/logs_field_mappings.ts index d4cf044933c1..266e608c0737 100644 --- a/src/plugins/home/server/services/sample_data/data_sets/otel/logs_field_mappings.ts +++ b/src/plugins/home/server/services/sample_data/data_sets/otel/logs_field_mappings.ts @@ -4,391 +4,389 @@ */ export const logsFieldMappings = { - properties: { - body: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + body: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - droppedAttributesCount: { - type: 'long', - }, - flags: { - type: 'long', - }, - instrumentationScope: { - properties: { - name: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + droppedAttributesCount: { + type: 'long', + }, + flags: { + type: 'long', + }, + instrumentationScope: { + properties: { + name: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, }, - log: { - properties: { - attributes: { - properties: { - address: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + log: { + properties: { + attributes: { + properties: { + address: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - contentRoot: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + contentRoot: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - context: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + context: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - envName: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + envName: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - otelServiceName: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + otelServiceName: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - otelSpanID: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + otelSpanID: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - otelTraceID: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + otelTraceID: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - otelTraceSampled: { - type: 'boolean', - }, - productId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + otelTraceSampled: { + type: 'boolean', + }, + productId: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - quantity: { - type: 'long', - }, - userId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + quantity: { + type: 'long', + }, + userId: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, }, }, }, - observedTime: { - type: 'date', - }, - resource: { - properties: { - attributes: { - properties: { - 'container@id': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + observedTime: { + type: 'date', + }, + resource: { + properties: { + attributes: { + properties: { + 'container@id': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'docker@cli@cobra@command_path': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'docker@cli@cobra@command_path': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'host@arch': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'host@arch': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'host@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'host@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'os@description': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'os@description': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'os@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'os@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'os@type': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'os@type': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'os@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'os@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@command': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@command': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@command_args': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@command_args': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@command_line': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@command_line': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@executable@path': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@executable@path': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@owner': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@owner': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@pid': { - type: 'long', - }, - 'process@runtime@description': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@pid': { + type: 'long', + }, + 'process@runtime@description': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@runtime@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@runtime@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@runtime@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@runtime@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'service@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'service@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'service@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'service@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'telemetry@auto@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'telemetry@auto@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'telemetry@sdk@language': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'telemetry@sdk@language': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'telemetry@sdk@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'telemetry@sdk@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'telemetry@sdk@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'telemetry@sdk@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, }, }, }, - schemaUrl: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + schemaUrl: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - serviceName: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + serviceName: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - severityNumber: { - type: 'long', - }, - severityText: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + severityNumber: { + type: 'long', + }, + severityText: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - spanId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + spanId: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - time: { - type: 'date', - }, - traceId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + time: { + type: 'date', + }, + traceId: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, diff --git a/src/plugins/home/server/services/sample_data/data_sets/otel/metrics_field_mappings.ts b/src/plugins/home/server/services/sample_data/data_sets/otel/metrics_field_mappings.ts index 3315501a6253..fad89469bffe 100644 --- a/src/plugins/home/server/services/sample_data/data_sets/otel/metrics_field_mappings.ts +++ b/src/plugins/home/server/services/sample_data/data_sets/otel/metrics_field_mappings.ts @@ -4,691 +4,653 @@ */ export const metricsFieldMappings = { - _meta: { - component: 'metrics', - type: 'metrics', - version: '1.0.0', - correlations: [ - { - field: 'spanId', - 'foreign-field': 'spanId', - 'foreign-schema': 'traces', - }, - { - field: 'traceId', - 'foreign-field': 'traceId', - 'foreign-schema': 'traces', - }, - ], - catalog: 'observability', - }, - dynamic_templates: [ - { - exemplar_attributes_map: { - path_match: 'exemplar.attributes.*', - mapping: { - type: 'keyword', - }, - }, - }, - { - instrumentation_scope_attributes_map: { - path_match: 'instrumentationScope.attributes.*', - mapping: { - type: 'keyword', - }, - }, - }, - ], - properties: { - '@timestamp': { - type: 'date', - }, - aggregationTemporality: { - type: 'keyword', - ignore_above: 128, - }, - attributes: { - properties: { - data_stream: { - properties: { - dataset: { - type: 'keyword', - ignore_above: 128, - }, - namespace: { - type: 'keyword', - ignore_above: 128, - }, - type: { - type: 'keyword', - ignore_above: 56, - }, + '@timestamp': { + type: 'date', + }, + aggregationTemporality: { + type: 'keyword', + ignore_above: 128, + }, + attributes: { + properties: { + data_stream: { + properties: { + dataset: { + type: 'keyword', + ignore_above: 128, + }, + namespace: { + type: 'keyword', + ignore_above: 128, + }, + type: { + type: 'keyword', + ignore_above: 56, }, }, - instrumentationScope: { - properties: { - name: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + instrumentationScope: { + properties: { + name: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - version: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + version: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, }, - metric: { - properties: { - attributes: { - properties: { - action: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + metric: { + properties: { + attributes: { + properties: { + action: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'app@ads@ad_request_type': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'app@ads@ad_request_type': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'app@ads@ad_response_type': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'app@ads@ad_response_type': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'app@payment@currency': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'app@payment@currency': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'client-id': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'client-id': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - count: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + count: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - cpu: { - type: 'long', - }, - currency_code: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + cpu: { + type: 'long', + }, + currency_code: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - daemon: { - type: 'boolean', - }, - device: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + daemon: { + type: 'boolean', + }, + device: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - direction: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + direction: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - dropped: { - type: 'boolean', - }, - family: { - type: 'long', - }, - gc: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + dropped: { + type: 'boolean', + }, + family: { + type: 'long', + }, + gc: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - generation: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + generation: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'http@flavor': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'http@flavor': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'http@host': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'http@host': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'http@method': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'http@method': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'http@route': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'http@route': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'http@scheme': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'http@scheme': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'http@status_code': { - type: 'long', - }, - method: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'http@status_code': { + type: 'long', + }, + method: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'net@host@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'net@host@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'net@host@port': { - type: 'long', - }, - 'net@peer@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'net@host@port': { + type: 'long', + }, + 'net@peer@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'net@peer@port': { - type: 'long', - }, - 'node-id': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'net@peer@port': { + type: 'long', + }, + 'node-id': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - operation: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + operation: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - partition: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + partition: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - pool: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + pool: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - processor: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + processor: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - processorType: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + processorType: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - protocol: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + protocol: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'recommendation@type': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'recommendation@type': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'rpc@grpc@status_code': { - type: 'long', - }, - 'rpc@method': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'rpc@grpc@status_code': { + type: 'long', + }, + 'rpc@method': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'rpc@service': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'rpc@service': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'rpc@system': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'rpc@system': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'service@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'service@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'span@kind': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'span@kind': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'span@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'span@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - state: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + state: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - status: { - type: 'long', - }, - 'status@code': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + status: { + type: 'long', + }, + 'status@code': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - success: { - type: 'boolean', - }, - target: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + success: { + type: 'boolean', + }, + target: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - topic: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + topic: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - type: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + type: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, }, }, }, - resource: { - properties: { - attributes: { - properties: { - 'container@id': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + resource: { + properties: { + attributes: { + properties: { + 'container@id': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'docker@cli@cobra@command_path': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'docker@cli@cobra@command_path': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'host@arch': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'host@arch': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'host@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'host@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'os@description': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'os@description': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'os@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'os@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'os@type': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'os@type': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'os@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'os@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@command': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@command': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@command_args': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@command_args': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@command_line': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@command_line': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@executable@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@executable@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@executable@path': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@executable@path': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@owner': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@owner': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@pid': { - type: 'long', - }, - 'process@runtime@description': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@pid': { + type: 'long', + }, + 'process@runtime@description': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@runtime@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@runtime@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'process@runtime@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'process@runtime@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'service@instance@id': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'service@instance@id': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'service@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'service@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'service@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'service@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'telemetry@auto@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'telemetry@auto@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'telemetry@sdk@language': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'telemetry@sdk@language': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'telemetry@sdk@name': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'telemetry@sdk@name': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'telemetry@sdk@version': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'telemetry@sdk@version': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, @@ -697,78 +659,78 @@ export const metricsFieldMappings = { }, }, }, - bucketCount: { - type: 'long', - }, - bucketCounts: { - type: 'long', - }, - bucketCountsList: { - type: 'long', - }, - buckets: { - type: 'nested', - properties: { - count: { - type: 'long', - }, - max: { - type: 'float', - }, - min: { - type: 'float', - }, - sum: { - type: 'double', - }, + }, + bucketCount: { + type: 'long', + }, + bucketCounts: { + type: 'long', + }, + bucketCountsList: { + type: 'long', + }, + buckets: { + type: 'nested', + properties: { + count: { + type: 'long', + }, + max: { + type: 'float', + }, + min: { + type: 'float', + }, + sum: { + type: 'double', }, }, - count: { - type: 'long', - }, - description: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + count: { + type: 'long', + }, + description: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - exemplar: { - properties: { - serviceName: { - type: 'keyword', - ignore_above: 256, - }, - spanId: { - type: 'keyword', - ignore_above: 256, - }, - time: { - type: 'date', - }, - traceId: { - type: 'keyword', - ignore_above: 256, - }, + }, + exemplar: { + properties: { + serviceName: { + type: 'keyword', + ignore_above: 256, + }, + spanId: { + type: 'keyword', + ignore_above: 256, + }, + time: { + type: 'date', + }, + traceId: { + type: 'keyword', + ignore_above: 256, }, }, - exemplars: { - properties: { - attributes: { - properties: { - exemplar: { - properties: { - attributes: { - properties: { - 'net@sock@peer@addr': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + exemplars: { + properties: { + attributes: { + properties: { + exemplar: { + properties: { + attributes: { + properties: { + 'net@sock@peer@addr': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, @@ -777,177 +739,177 @@ export const metricsFieldMappings = { }, }, }, - spanId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + spanId: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - time: { - type: 'date', - }, - traceId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + time: { + type: 'date', + }, + traceId: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - value: { - type: 'float', - }, + }, + value: { + type: 'float', }, }, - explicitBounds: { - type: 'float', - }, - explicitBoundsCount: { - type: 'float', - }, - explicitBoundsList: { - type: 'float', - }, - flags: { - type: 'long', - }, - instrumentationScope: { - properties: { - droppedAttributesCount: { - type: 'integer', - }, - name: { - type: 'keyword', - ignore_above: 256, - }, - schemaUrl: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + explicitBounds: { + type: 'float', + }, + explicitBoundsCount: { + type: 'float', + }, + explicitBoundsList: { + type: 'float', + }, + flags: { + type: 'long', + }, + instrumentationScope: { + properties: { + droppedAttributesCount: { + type: 'integer', + }, + name: { + type: 'keyword', + ignore_above: 256, + }, + schemaUrl: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - version: { - type: 'keyword', - ignore_above: 256, - }, }, - }, - isMonotonic: { - type: 'boolean', - }, - kind: { - type: 'keyword', - ignore_above: 128, - }, - max: { - type: 'float', - }, - min: { - type: 'float', - }, - monotonic: { - type: 'boolean', - }, - name: { - type: 'keyword', - ignore_above: 256, - }, - negativeBuckets: { - type: 'nested', - properties: { - count: { - type: 'long', - }, - max: { - type: 'float', - }, - min: { - type: 'float', - }, + version: { + type: 'keyword', + ignore_above: 256, }, }, - negativeOffset: { - type: 'integer', - }, - observedTimestamp: { - type: 'date_nanos', - }, - positiveBuckets: { - type: 'nested', - properties: { - count: { - type: 'long', - }, - max: { - type: 'float', - }, - min: { - type: 'float', - }, + }, + isMonotonic: { + type: 'boolean', + }, + kind: { + type: 'keyword', + ignore_above: 128, + }, + max: { + type: 'float', + }, + min: { + type: 'float', + }, + monotonic: { + type: 'boolean', + }, + name: { + type: 'keyword', + ignore_above: 256, + }, + negativeBuckets: { + type: 'nested', + properties: { + count: { + type: 'long', }, - }, - positiveOffset: { - type: 'integer', - }, - quantileValuesCount: { - type: 'long', - }, - quantiles: { - properties: { - quantile: { - type: 'double', - }, - value: { - type: 'double', - }, + max: { + type: 'float', }, - }, - scale: { - type: 'long', - }, - schemaUrl: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + min: { + type: 'float', }, }, - serviceName: { - type: 'keyword', - }, - startTime: { - type: 'date', - }, - sum: { - type: 'float', - }, - time: { - type: 'date', - }, - unit: { - type: 'keyword', - ignore_above: 128, - }, - value: { - type: 'float', - }, - 'value@double': { - type: 'double', + }, + negativeOffset: { + type: 'integer', + }, + observedTimestamp: { + type: 'date_nanos', + }, + positiveBuckets: { + type: 'nested', + properties: { + count: { + type: 'long', + }, + max: { + type: 'float', + }, + min: { + type: 'float', + }, }, - 'value@int': { - type: 'integer', + }, + positiveOffset: { + type: 'integer', + }, + quantileValuesCount: { + type: 'long', + }, + quantiles: { + properties: { + quantile: { + type: 'double', + }, + value: { + type: 'double', + }, }, - zeroCount: { - type: 'long', + }, + scale: { + type: 'long', + }, + schemaUrl: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, + }, }, }, + serviceName: { + type: 'keyword', + }, + startTime: { + type: 'date', + }, + sum: { + type: 'float', + }, + time: { + type: 'date', + }, + unit: { + type: 'keyword', + ignore_above: 128, + }, + value: { + type: 'float', + }, + 'value@double': { + type: 'double', + }, + 'value@int': { + type: 'integer', + }, + zeroCount: { + type: 'long', + }, }; diff --git a/src/plugins/home/server/services/sample_data/data_sets/otel/services_field_mappings.ts b/src/plugins/home/server/services/sample_data/data_sets/otel/services_field_mappings.ts index ad3b010a1d1b..a9a475d8d62f 100644 --- a/src/plugins/home/server/services/sample_data/data_sets/otel/services_field_mappings.ts +++ b/src/plugins/home/server/services/sample_data/data_sets/otel/services_field_mappings.ts @@ -4,58 +4,44 @@ */ export const servicesFieldMappings = { - dynamic_templates: [ - { - strings_as_keyword: { - match_mapping_type: 'string', - mapping: { - ignore_above: 1024, - type: 'keyword', - }, + destination: { + properties: { + domain: { + type: 'keyword', + ignore_above: 1024, }, - }, - ], - date_detection: false, - properties: { - destination: { - properties: { - domain: { - type: 'keyword', - ignore_above: 1024, - }, - resource: { - type: 'keyword', - ignore_above: 1024, - }, + resource: { + type: 'keyword', + ignore_above: 1024, }, }, - hashId: { - type: 'keyword', - ignore_above: 1024, - }, - kind: { - type: 'keyword', - ignore_above: 1024, - }, - serviceName: { - type: 'keyword', - ignore_above: 1024, - }, - target: { - properties: { - domain: { - type: 'keyword', - ignore_above: 1024, - }, - resource: { - type: 'keyword', - ignore_above: 1024, - }, + }, + hashId: { + type: 'keyword', + ignore_above: 1024, + }, + kind: { + type: 'keyword', + ignore_above: 1024, + }, + serviceName: { + type: 'keyword', + ignore_above: 1024, + }, + target: { + properties: { + domain: { + type: 'keyword', + ignore_above: 1024, + }, + resource: { + type: 'keyword', + ignore_above: 1024, }, }, - traceGroupName: { - type: 'keyword', - ignore_above: 1024, - }, + }, + traceGroupName: { + type: 'keyword', + ignore_above: 1024, }, }; diff --git a/src/plugins/home/server/services/sample_data/data_sets/otel/traces_field_mappings.ts b/src/plugins/home/server/services/sample_data/data_sets/otel/traces_field_mappings.ts index 595e840cae25..5d6cae3de141 100644 --- a/src/plugins/home/server/services/sample_data/data_sets/otel/traces_field_mappings.ts +++ b/src/plugins/home/server/services/sample_data/data_sets/otel/traces_field_mappings.ts @@ -4,621 +4,600 @@ */ export const tracesFieldMappings = { - dynamic_templates: [ - { - resource_attributes_map: { - path_match: 'resource.attributes.*', - mapping: { - type: 'keyword', - }, - }, - }, - { - span_attributes_map: { - path_match: 'span.attributes.*', - mapping: { - type: 'keyword', - }, - }, - }, - ], - date_detection: false, - properties: { - droppedAttributesCount: { - type: 'long', - }, - droppedEventsCount: { - type: 'long', - }, - droppedLinksCount: { - type: 'long', - }, - durationInNanos: { - type: 'long', - }, - endTime: { - type: 'date_nanos', - }, - events: { - type: 'nested', - properties: { - attributes: { - properties: { - 'app@payment@transaction@id': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + droppedAttributesCount: { + type: 'long', + }, + droppedEventsCount: { + type: 'long', + }, + droppedLinksCount: { + type: 'long', + }, + durationInNanos: { + type: 'long', + }, + endTime: { + type: 'date_nanos', + }, + events: { + type: 'nested', + properties: { + attributes: { + properties: { + 'app@payment@transaction@id': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'app@quote@cost@total': { - type: 'float', - }, - 'app@shipping@cost@total': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'app@quote@cost@total': { + type: 'float', + }, + 'app@shipping@cost@total': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'app@shipping@tracking@id': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'app@shipping@tracking@id': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - 'message@id': { - type: 'long', - }, - 'message@type': { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + 'message@id': { + type: 'long', + }, + 'message@type': { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, }, - droppedAttributesCount: { - type: 'long', - }, - name: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + droppedAttributesCount: { + type: 'long', + }, + name: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - time: { - type: 'date_nanos', - }, + }, + time: { + type: 'date_nanos', }, }, - instrumentationScope: { - properties: { - name: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + instrumentationScope: { + properties: { + name: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - version: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + version: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, }, - kind: { - type: 'keyword', - ignore_above: 128, - }, - links: { - type: 'nested', - properties: { - attributes: { - type: 'object', - }, - droppedAttributesCount: { - type: 'long', - }, - spanId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + kind: { + type: 'keyword', + ignore_above: 128, + }, + links: { + type: 'nested', + properties: { + attributes: { + type: 'object', + }, + droppedAttributesCount: { + type: 'long', + }, + spanId: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - traceId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + traceId: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, - traceState: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + traceState: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, }, }, - name: { - type: 'keyword', - ignore_above: 1024, - }, - parentSpanId: { - type: 'keyword', - ignore_above: 256, - }, - resource: { - properties: { - attributes: { - properties: { - 'container@id': { - type: 'keyword', - }, - 'docker@cli@cobra@command_path': { - type: 'keyword', - }, - 'host@arch': { - type: 'keyword', - }, - 'host@name': { - type: 'keyword', - }, - 'os@description': { - type: 'keyword', - }, - 'os@name': { - type: 'keyword', - }, - 'os@type': { - type: 'keyword', - }, - 'os@version': { - type: 'keyword', - }, - 'process@command': { - type: 'keyword', - }, - 'process@command_args': { - type: 'keyword', - }, - 'process@command_line': { - type: 'keyword', - }, - 'process@executable@name': { - type: 'keyword', - }, - 'process@executable@path': { - type: 'keyword', - }, - 'process@owner': { - type: 'keyword', - }, - 'process@pid': { - type: 'keyword', - }, - 'process@runtime@description': { - type: 'keyword', - }, - 'process@runtime@name': { - type: 'keyword', - }, - 'process@runtime@version': { - type: 'keyword', - }, - 'service@instance@id': { - type: 'keyword', - }, - 'service@name': { - type: 'keyword', - }, - 'service@version': { - type: 'keyword', - }, - 'telemetry@auto@version': { - type: 'keyword', - }, - 'telemetry@sdk@language': { - type: 'keyword', - }, - 'telemetry@sdk@name': { - type: 'keyword', - }, - 'telemetry@sdk@version': { - type: 'keyword', - }, + }, + name: { + type: 'keyword', + ignore_above: 1024, + }, + parentSpanId: { + type: 'keyword', + ignore_above: 256, + }, + resource: { + properties: { + attributes: { + properties: { + 'container@id': { + type: 'keyword', + }, + 'docker@cli@cobra@command_path': { + type: 'keyword', + }, + 'host@arch': { + type: 'keyword', + }, + 'host@name': { + type: 'keyword', + }, + 'os@description': { + type: 'keyword', + }, + 'os@name': { + type: 'keyword', + }, + 'os@type': { + type: 'keyword', + }, + 'os@version': { + type: 'keyword', + }, + 'process@command': { + type: 'keyword', + }, + 'process@command_args': { + type: 'keyword', + }, + 'process@command_line': { + type: 'keyword', + }, + 'process@executable@name': { + type: 'keyword', + }, + 'process@executable@path': { + type: 'keyword', + }, + 'process@owner': { + type: 'keyword', + }, + 'process@pid': { + type: 'keyword', + }, + 'process@runtime@description': { + type: 'keyword', + }, + 'process@runtime@name': { + type: 'keyword', + }, + 'process@runtime@version': { + type: 'keyword', + }, + 'service@instance@id': { + type: 'keyword', + }, + 'service@name': { + type: 'keyword', + }, + 'service@version': { + type: 'keyword', + }, + 'telemetry@auto@version': { + type: 'keyword', + }, + 'telemetry@sdk@language': { + type: 'keyword', + }, + 'telemetry@sdk@name': { + type: 'keyword', + }, + 'telemetry@sdk@version': { + type: 'keyword', }, }, }, }, - serviceName: { - type: 'keyword', - }, - span: { - properties: { - attributes: { - properties: { - 'app@ads@ad_request_type': { - type: 'keyword', - }, - 'app@ads@ad_response_type': { - type: 'keyword', - }, - 'app@ads@category': { - type: 'keyword', - }, - 'app@ads@contextKeys': { - type: 'keyword', - }, - 'app@ads@contextKeys@count': { - type: 'keyword', - }, - 'app@ads@count': { - type: 'keyword', - }, - 'app@cart@items@count': { - type: 'keyword', - }, - 'app@currency@conversion@from': { - type: 'keyword', - }, - 'app@currency@conversion@to': { - type: 'keyword', - }, - 'app@email@recipient': { - type: 'keyword', - }, - 'app@featureflag@enabled': { - type: 'keyword', - }, - 'app@featureflag@name': { - type: 'keyword', - }, - 'app@filtered_products@count': { - type: 'keyword', - }, - 'app@filtered_products@list': { - type: 'keyword', - }, - 'app@order@amount': { - type: 'keyword', - }, - 'app@order@id': { - type: 'keyword', - }, - 'app@order@items@count': { - type: 'keyword', - }, - 'app@payment@amount': { - type: 'keyword', - }, - 'app@payment@card_type': { - type: 'keyword', - }, - 'app@payment@card_valid': { - type: 'keyword', - }, - 'app@payment@charged': { - type: 'keyword', - }, - 'app@product@id': { - type: 'keyword', - }, - 'app@product@name': { - type: 'keyword', - }, - 'app@product@quantity': { - type: 'keyword', - }, - 'app@products@count': { - type: 'keyword', - }, - 'app@products_recommended@count': { - type: 'keyword', - }, - 'app@quote@cost@total': { - type: 'keyword', - }, - 'app@quote@items@count': { - type: 'keyword', - }, - 'app@recommendation@cache_enabled': { - type: 'keyword', - }, - 'app@shipping@amount': { - type: 'keyword', - }, - 'app@shipping@cost@total': { - type: 'keyword', - }, - 'app@shipping@items@count': { - type: 'keyword', - }, - 'app@shipping@tracking@id': { - type: 'keyword', - }, - 'app@shipping@zip_code': { - type: 'keyword', - }, - 'app@synthetic_request': { - type: 'keyword', - }, - 'app@user@currency': { - type: 'keyword', - }, - 'app@user@id': { - type: 'keyword', - }, - busy_ns: { - type: 'keyword', - }, - 'code@filepath': { - type: 'keyword', - }, - 'code@function': { - type: 'keyword', - }, - 'code@lineno': { - type: 'keyword', - }, - 'code@namespace': { - type: 'keyword', - }, - 'db@instance': { - type: 'keyword', - }, - 'db@name': { - type: 'keyword', - }, - 'db@redis@database_index': { - type: 'keyword', - }, - 'db@redis@flags': { - type: 'keyword', - }, - 'db@statement': { - type: 'keyword', - }, - 'db@system': { - type: 'keyword', - }, - 'db@type': { - type: 'keyword', - }, - 'db@url': { - type: 'keyword', - }, - decode_time_microseconds: { - type: 'keyword', - }, - 'http@client_ip': { - type: 'keyword', - }, - 'http@flavor': { - type: 'keyword', - }, - 'http@host': { - type: 'keyword', - }, - 'http@method': { - type: 'keyword', - }, - 'http@request_content_length': { - type: 'keyword', - }, - 'http@request_content_length_uncompressed': { - type: 'keyword', - }, - 'http@response_content_length': { - type: 'keyword', - }, - 'http@route': { - type: 'keyword', - }, - 'http@scheme': { - type: 'keyword', - }, - 'http@status_code': { - type: 'keyword', - }, - 'http@status_text': { - type: 'keyword', - }, - 'http@target': { - type: 'keyword', - }, - 'http@url': { - type: 'keyword', - }, - 'http@user_agent': { - type: 'keyword', - }, - idle_ns: { - type: 'keyword', - }, - idle_time_microseconds: { - type: 'keyword', - }, - 'messaging@client_id': { - type: 'keyword', - }, - 'messaging@destination@kind': { - type: 'keyword', - }, - 'messaging@destination@name': { - type: 'keyword', - }, - 'messaging@kafka@consumer@group': { - type: 'keyword', - }, - 'messaging@kafka@destination@partition': { - type: 'keyword', - }, - 'messaging@kafka@message@offset': { - type: 'keyword', - }, - 'messaging@message@payload_size_bytes': { - type: 'keyword', - }, - 'messaging@operation': { - type: 'keyword', - }, - 'messaging@system': { - type: 'keyword', - }, - 'net@host@ip': { - type: 'keyword', - }, - 'net@host@name': { - type: 'keyword', - }, - 'net@host@port': { - type: 'keyword', - }, - 'net@peer@ip': { - type: 'keyword', - }, - 'net@peer@name': { - type: 'keyword', - }, - 'net@peer@port': { - type: 'keyword', - }, - 'net@sock@host@addr': { - type: 'keyword', - }, - 'net@sock@peer@addr': { - type: 'keyword', - }, - 'net@sock@peer@port': { - type: 'keyword', - }, - 'net@transport': { - type: 'keyword', - }, - 'peer@service': { - type: 'keyword', - }, - 'phoenix@action': { - type: 'keyword', - }, - 'phoenix@plug': { - type: 'keyword', - }, - query_time_microseconds: { - type: 'keyword', - }, - queue_time_microseconds: { - type: 'keyword', - }, - 'rpc@grpc@status_code': { - type: 'keyword', - }, - 'rpc@method': { - type: 'keyword', - }, - 'rpc@service': { - type: 'keyword', - }, - 'rpc@system': { - type: 'keyword', - }, - 'rpc@user_agent': { - type: 'keyword', - }, - 'sinatra@template_name': { - type: 'keyword', - }, - source: { - type: 'keyword', - }, - 'thread@id': { - type: 'keyword', - }, - 'thread@name': { - type: 'keyword', - }, - total_time_microseconds: { - type: 'keyword', - }, + }, + serviceName: { + type: 'keyword', + }, + span: { + properties: { + attributes: { + properties: { + 'app@ads@ad_request_type': { + type: 'keyword', + }, + 'app@ads@ad_response_type': { + type: 'keyword', + }, + 'app@ads@category': { + type: 'keyword', + }, + 'app@ads@contextKeys': { + type: 'keyword', + }, + 'app@ads@contextKeys@count': { + type: 'keyword', + }, + 'app@ads@count': { + type: 'keyword', + }, + 'app@cart@items@count': { + type: 'keyword', + }, + 'app@currency@conversion@from': { + type: 'keyword', + }, + 'app@currency@conversion@to': { + type: 'keyword', + }, + 'app@email@recipient': { + type: 'keyword', + }, + 'app@featureflag@enabled': { + type: 'keyword', + }, + 'app@featureflag@name': { + type: 'keyword', + }, + 'app@filtered_products@count': { + type: 'keyword', + }, + 'app@filtered_products@list': { + type: 'keyword', + }, + 'app@order@amount': { + type: 'keyword', + }, + 'app@order@id': { + type: 'keyword', + }, + 'app@order@items@count': { + type: 'keyword', + }, + 'app@payment@amount': { + type: 'keyword', + }, + 'app@payment@card_type': { + type: 'keyword', + }, + 'app@payment@card_valid': { + type: 'keyword', + }, + 'app@payment@charged': { + type: 'keyword', + }, + 'app@product@id': { + type: 'keyword', + }, + 'app@product@name': { + type: 'keyword', + }, + 'app@product@quantity': { + type: 'keyword', + }, + 'app@products@count': { + type: 'keyword', + }, + 'app@products_recommended@count': { + type: 'keyword', + }, + 'app@quote@cost@total': { + type: 'keyword', + }, + 'app@quote@items@count': { + type: 'keyword', + }, + 'app@recommendation@cache_enabled': { + type: 'keyword', + }, + 'app@shipping@amount': { + type: 'keyword', + }, + 'app@shipping@cost@total': { + type: 'keyword', + }, + 'app@shipping@items@count': { + type: 'keyword', + }, + 'app@shipping@tracking@id': { + type: 'keyword', + }, + 'app@shipping@zip_code': { + type: 'keyword', + }, + 'app@synthetic_request': { + type: 'keyword', + }, + 'app@user@currency': { + type: 'keyword', + }, + 'app@user@id': { + type: 'keyword', + }, + busy_ns: { + type: 'keyword', + }, + 'code@filepath': { + type: 'keyword', + }, + 'code@function': { + type: 'keyword', + }, + 'code@lineno': { + type: 'keyword', + }, + 'code@namespace': { + type: 'keyword', + }, + 'db@instance': { + type: 'keyword', + }, + 'db@name': { + type: 'keyword', + }, + 'db@redis@database_index': { + type: 'keyword', + }, + 'db@redis@flags': { + type: 'keyword', + }, + 'db@statement': { + type: 'keyword', + }, + 'db@system': { + type: 'keyword', + }, + 'db@type': { + type: 'keyword', + }, + 'db@url': { + type: 'keyword', + }, + decode_time_microseconds: { + type: 'keyword', + }, + 'http@client_ip': { + type: 'keyword', + }, + 'http@flavor': { + type: 'keyword', + }, + 'http@host': { + type: 'keyword', + }, + 'http@method': { + type: 'keyword', + }, + 'http@request_content_length': { + type: 'keyword', + }, + 'http@request_content_length_uncompressed': { + type: 'keyword', + }, + 'http@response_content_length': { + type: 'keyword', + }, + 'http@route': { + type: 'keyword', + }, + 'http@scheme': { + type: 'keyword', + }, + 'http@status_code': { + type: 'keyword', + }, + 'http@status_text': { + type: 'keyword', + }, + 'http@target': { + type: 'keyword', + }, + 'http@url': { + type: 'keyword', + }, + 'http@user_agent': { + type: 'keyword', + }, + idle_ns: { + type: 'keyword', + }, + idle_time_microseconds: { + type: 'keyword', + }, + 'messaging@client_id': { + type: 'keyword', + }, + 'messaging@destination@kind': { + type: 'keyword', + }, + 'messaging@destination@name': { + type: 'keyword', + }, + 'messaging@kafka@consumer@group': { + type: 'keyword', + }, + 'messaging@kafka@destination@partition': { + type: 'keyword', + }, + 'messaging@kafka@message@offset': { + type: 'keyword', + }, + 'messaging@message@payload_size_bytes': { + type: 'keyword', + }, + 'messaging@operation': { + type: 'keyword', + }, + 'messaging@system': { + type: 'keyword', + }, + 'net@host@ip': { + type: 'keyword', + }, + 'net@host@name': { + type: 'keyword', + }, + 'net@host@port': { + type: 'keyword', + }, + 'net@peer@ip': { + type: 'keyword', + }, + 'net@peer@name': { + type: 'keyword', + }, + 'net@peer@port': { + type: 'keyword', + }, + 'net@sock@host@addr': { + type: 'keyword', + }, + 'net@sock@peer@addr': { + type: 'keyword', + }, + 'net@sock@peer@port': { + type: 'keyword', + }, + 'net@transport': { + type: 'keyword', + }, + 'peer@service': { + type: 'keyword', + }, + 'phoenix@action': { + type: 'keyword', + }, + 'phoenix@plug': { + type: 'keyword', + }, + query_time_microseconds: { + type: 'keyword', + }, + queue_time_microseconds: { + type: 'keyword', + }, + 'rpc@grpc@status_code': { + type: 'keyword', + }, + 'rpc@method': { + type: 'keyword', + }, + 'rpc@service': { + type: 'keyword', + }, + 'rpc@system': { + type: 'keyword', + }, + 'rpc@user_agent': { + type: 'keyword', + }, + 'sinatra@template_name': { + type: 'keyword', + }, + source: { + type: 'keyword', + }, + 'thread@id': { + type: 'keyword', + }, + 'thread@name': { + type: 'keyword', + }, + total_time_microseconds: { + type: 'keyword', }, }, }, }, - spanId: { - type: 'keyword', - ignore_above: 256, - }, - startTime: { - type: 'date_nanos', - }, - status: { - properties: { - code: { - type: 'integer', - }, - message: { - type: 'keyword', - }, + }, + spanId: { + type: 'keyword', + ignore_above: 256, + }, + startTime: { + type: 'date_nanos', + }, + status: { + properties: { + code: { + type: 'integer', }, - }, - traceGroup: { - type: 'keyword', - ignore_above: 1024, - }, - traceGroupFields: { - properties: { - durationInNanos: { - type: 'long', - }, - endTime: { - type: 'date_nanos', - }, - statusCode: { - type: 'integer', - }, + message: { + type: 'keyword', }, }, - traceId: { - type: 'keyword', - ignore_above: 256, + }, + traceGroup: { + type: 'keyword', + ignore_above: 1024, + }, + traceGroupFields: { + properties: { + durationInNanos: { + type: 'long', + }, + endTime: { + type: 'date_nanos', + }, + statusCode: { + type: 'integer', + }, }, - traceState: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, + }, + traceId: { + type: 'keyword', + ignore_above: 256, + }, + traceState: { + type: 'text', + fields: { + keyword: { + type: 'keyword', + ignore_above: 256, }, }, },