From d6b5b738a2a629df84617c59b960470625c3564f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rica?= Date: Fri, 13 Jun 2025 11:58:19 +0200 Subject: [PATCH 1/3] Update traces duration mappings with appropriate unit type --- .../resources/component-templates/traces-apm@mappings.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/plugin/apm-data/src/main/resources/component-templates/traces-apm@mappings.yaml b/x-pack/plugin/apm-data/src/main/resources/component-templates/traces-apm@mappings.yaml index 6f60dc45b3d8c..c7f282881ad65 100644 --- a/x-pack/plugin/apm-data/src/main/resources/component-templates/traces-apm@mappings.yaml +++ b/x-pack/plugin/apm-data/src/main/resources/component-templates/traces-apm@mappings.yaml @@ -43,6 +43,8 @@ template: # span.* span.duration.us: type: long + meta: + unit: micros span.representative_count: type: scaled_float scaling_factor: 1000 @@ -57,6 +59,8 @@ template: dynamic: false transaction.duration.us: type: long + meta: + unit: micros transaction.representative_count: type: scaled_float scaling_factor: 1000 From 6fc1852bc1016f7dc52c32f22b9426c0ccc87307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rica?= Date: Fri, 13 Jun 2025 17:45:08 +0200 Subject: [PATCH 2/3] Update resources version --- x-pack/plugin/apm-data/src/main/resources/resources.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/apm-data/src/main/resources/resources.yaml b/x-pack/plugin/apm-data/src/main/resources/resources.yaml index ea54fd4c072e9..4ae333d7cfa8f 100644 --- a/x-pack/plugin/apm-data/src/main/resources/resources.yaml +++ b/x-pack/plugin/apm-data/src/main/resources/resources.yaml @@ -1,7 +1,7 @@ # "version" holds the version of the templates and ingest pipelines installed # by xpack-plugin apm-data. This must be increased whenever an existing template or # pipeline is changed, in order for it to be updated on Elasticsearch upgrade. -version: 14 +version: 15 component-templates: # Data lifecycle. From 813a89d050c1b48a9764718c5377def66d605eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rica=20Pais=20da=20Silva?= Date: Fri, 13 Jun 2025 17:47:51 +0200 Subject: [PATCH 3/3] Update docs/changelog/129418.yaml --- docs/changelog/129418.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/changelog/129418.yaml diff --git a/docs/changelog/129418.yaml b/docs/changelog/129418.yaml new file mode 100644 index 0000000000000..0be7d7149d467 --- /dev/null +++ b/docs/changelog/129418.yaml @@ -0,0 +1,5 @@ +pr: 129418 +summary: Update traces duration mappings with appropriate unit type +area: Ingest Node +type: enhancement +issues: []