Commit bf1e962
x-pack/plugin/otel: introduce x-pack-otel plugin (elastic#111091)
* Add YamlTemplateRegistry and OtelIndexTemplateRegistry with resource YAML files
* Fix traces-otel template
* Adding first yml tests
* Base APMIndexTemplateRegistry on YamlTemplateRegistry
* Update OTelPlugin.java
* Update APMIndexTemplateRegistry.java
* Update YamlIngestPipelineConfig.java
* Adding traces tests
* Update x-pack/plugin/otel-data/src/main/resources/component-templates/[email protected]
Co-authored-by: Felix Barnsteiner <[email protected]>
* Add mapper-version
* Fix code-style
* Rename `status.status_code` to `status.code`
* Update [email protected]
Revert back to date due to missing support in ES|QL for date_nanos
* Move dynamic_templates to metrics@mappings in core
* Run gradlew :x-pack:plugin:core:spotlessApply
* Update x-pack/plugin/otel-data/src/main/resources/component-templates/[email protected]
Co-authored-by: Carson Ip <[email protected]>
* Update 20_metic_tests.yml
Workaround for TSDB timestamp issue: we push a custom template with higher priority and set time_series.start_time.
* Update CODEOWNERS
Adding obs-ds-intake-services as owner of the new otel-data plugin.
Since we had some changes, also updating the owner of apm-data to the same team.
* Change dynamic: strict to false
* Skip "Reject invalid top level field" test
* Update 20_metic_tests.yml
* Add boolean as dimension test (skipping it for now)
* Add booleans_to_keywords and enable corresponding test
* Remove processor.event top level mapping
Reason: for metrics and logs we can rely on the name of the datastream. For spans vs. transactions there are other fields we can use.
* Remove booleans_to_keywords
Because booleans are supported now as dimension on TSDB
* Add alias service.language.name -> telemetry.sdk.language
* cleanup
* Update README.md
* Update README.md
* Update docs/changelog/111091.yaml
* Move traces@settings and traces@mappings to core
* Update [email protected]
* Review feedback
* Adapt `match` style in tests
* Update docs/changelog/111091.yaml
* Apply suggestions from code review
Co-authored-by: Vishal Raj <[email protected]>
* Update x-pack/plugin/otel-data/src/main/resources/component-templates/[email protected]
Co-authored-by: Carson Ip <[email protected]>
* Changing trace_flags to long
Related discussion: elastic#111091 (comment)
* Remove trace_flags
see: elastic/opentelemetry-dev#368 (review)
* Apply suggestions from code review
Co-authored-by: Andrew Wilkins <[email protected]>
* Review feedback
* Add store_array_source for span links
* Define constant `data_stream.type` in `template.yaml`s
* Create package-info.java
* Move ecs-tsdb@mappings to index template
Add test to verify that @Custom template can add dynamic templates with a higher precedence
* Update [email protected]
Remove summary_gauge and summary_counter since they are covered by summary_metrics
* Move clusterService.getClusterSettings().addSettingsUpdateConsumer to registry
* Fix code-style
* Update x-pack/plugin/otel-data/src/yamlRestTest/resources/rest-api-spec/test/20_logs.tests.yml
Co-authored-by: Felix Barnsteiner <[email protected]>
* Enable logsdb
* Update [email protected]
No lifecycle needed for OTel at this point
---------
Co-authored-by: Felix Barnsteiner <[email protected]>
Co-authored-by: Carson Ip <[email protected]>
Co-authored-by: Vishal Raj <[email protected]>
Co-authored-by: Andrew Wilkins <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Felix Barnsteiner <[email protected]>1 parent bbfc805 commit bf1e962
File tree
39 files changed
+1480
-219
lines changed- .github
- docs/changelog
- x-pack/plugin
- apm-data/src
- main
- java/org/elasticsearch/xpack/apmdata
- resources
- component-templates
- test/java/org/elasticsearch/xpack/apmdata
- core
- src/main/java/org/elasticsearch/xpack/core
- template
- template-resources/src/main/resources
- otel-data
- src
- main
- java/org/elasticsearch/xpack/oteldata
- resources
- component-templates
- index-templates
- yamlRestTest
- java/org/elasticsearch/xpack/oteldata
- resources/rest-api-spec/test
- security/src/main/java/org/elasticsearch/xpack/security/authz
- stack/src
- main/java/org/elasticsearch/xpack/stack
- test/java/org/elasticsearch/xpack/stack
39 files changed
+1480
-219
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
x-pack/plugin/apm-data/src/main/java/org/elasticsearch/xpack/apmdata/APMIndexTemplateRegistry.java
Lines changed: 15 additions & 148 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 11 | | |
17 | 12 | | |
18 | | - | |
19 | | - | |
20 | 13 | | |
21 | | - | |
22 | 14 | | |
23 | 15 | | |
24 | | - | |
25 | | - | |
26 | 16 | | |
27 | | - | |
28 | | - | |
| 17 | + | |
29 | 18 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 19 | + | |
39 | 20 | | |
40 | 21 | | |
41 | 22 | | |
42 | 23 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 24 | + | |
49 | 25 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 26 | + | |
55 | 27 | | |
56 | | - | |
57 | 28 | | |
58 | 29 | | |
59 | 30 | | |
| |||
62 | 33 | | |
63 | 34 | | |
64 | 35 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 36 | + | |
121 | 37 | | |
122 | 38 | | |
123 | 39 | | |
124 | | - | |
125 | | - | |
| 40 | + | |
| 41 | + | |
126 | 42 | | |
127 | 43 | | |
128 | 44 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
134 | 49 | | |
135 | 50 | | |
136 | 51 | | |
137 | 52 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 53 | + | |
| 54 | + | |
188 | 55 | | |
189 | 56 | | |
190 | 57 | | |
191 | | - | |
192 | | - | |
| 58 | + | |
| 59 | + | |
193 | 60 | | |
194 | 61 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
| |||
0 commit comments