Browse Source

x-pack/plugin/apm-data: add transaction.profiler_stack_trace_ids field to apm plugin (#105223)

* feat: add transaction.profiler_stack_trace_ids field to apm plugin

* docs: add changelog file

* fix: add counted-keyword module
Kyungeun Kim 1 year ago
parent
commit
6780739ffd

+ 5 - 0
docs/changelog/105223.yaml

@@ -0,0 +1,5 @@
+pr: 105223
+summary: "x-pack/plugin/apm-data: Add a new field transaction.profiler_stack_trace_ids to traces-apm@mappings.yaml"
+area: Data streams
+type: enhancement
+issues: []

+ 1 - 0
x-pack/plugin/apm-data/build.gradle

@@ -30,6 +30,7 @@ dependencies {
   clusterModules project(xpackModule('ilm'))
   clusterModules project(xpackModule('mapper-aggregate-metric'))
   clusterModules project(xpackModule('mapper-constant-keyword'))
+  clusterModules project(xpackModule('mapper-counted-keyword'))
   clusterModules project(xpackModule('stack'))
   clusterModules project(xpackModule('wildcard'))
 }

+ 2 - 0
x-pack/plugin/apm-data/src/main/resources/component-templates/traces-apm@mappings.yaml

@@ -51,3 +51,5 @@ template:
         type: scaled_float
         scaling_factor: 1000
         index: false
+      transaction.profiler_stack_trace_ids:
+        type: counted_keyword

+ 1 - 0
x-pack/plugin/apm-data/src/yamlRestTest/java/org/elasticsearch/xpack/apmdata/APMYamlTestSuiteIT.java

@@ -20,6 +20,7 @@ public class APMYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
     @ClassRule
     public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
         .module("constant-keyword")
+        .module("counted-keyword")
         .module("data-streams")
         .module("ingest-common")
         .module("ingest-geoip")