diff --git a/docs/changelog/129418.yaml b/docs/changelog/129418.yaml new file mode 100644 index 000000000000..0be7d7149d46 --- /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: [] 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 6f60dc45b3d8..c7f282881ad6 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 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 ea54fd4c072e..4ae333d7cfa8 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.