|
6 | 6 | "_source": {
|
7 | 7 | "enabled": true
|
8 | 8 | },
|
9 |
| - "properties": { |
10 |
| - "name": { |
11 |
| - "type": "text", |
12 |
| - "fields": { |
13 |
| - "keyword": { |
| 9 | + "dynamic_templates": [ |
| 10 | + { |
| 11 | + "long_resource_attributes": { |
| 12 | + "mapping": { |
| 13 | + "type": "long" |
| 14 | + }, |
| 15 | + "path_match": "resource.attributes.*", |
| 16 | + "match_mapping_type": "long" |
| 17 | + } |
| 18 | + }, |
| 19 | + { |
| 20 | + "double_resource_attributes": { |
| 21 | + "mapping": { |
| 22 | + "type": "double" |
| 23 | + }, |
| 24 | + "path_match": "resource.attributes.*", |
| 25 | + "match_mapping_type": "double" |
| 26 | + } |
| 27 | + }, |
| 28 | + { |
| 29 | + "long_scope_attributes": { |
| 30 | + "mapping": { |
| 31 | + "type": "long" |
| 32 | + }, |
| 33 | + "path_match": "instrumentationScope.attributes.*", |
| 34 | + "match_mapping_type": "long" |
| 35 | + } |
| 36 | + }, |
| 37 | + { |
| 38 | + "double_scope_attributes": { |
| 39 | + "mapping": { |
| 40 | + "type": "double" |
| 41 | + }, |
| 42 | + "path_match": "instrumentationScope.attributes.*", |
| 43 | + "match_mapping_type": "double" |
| 44 | + } |
| 45 | + }, |
| 46 | + { |
| 47 | + "long_attributes": { |
| 48 | + "mapping": { |
| 49 | + "type": "long" |
| 50 | + }, |
| 51 | + "path_match": "attributes.*", |
| 52 | + "match_mapping_type": "long" |
| 53 | + } |
| 54 | + }, |
| 55 | + { |
| 56 | + "double_attributes": { |
| 57 | + "mapping": { |
| 58 | + "type": "double" |
| 59 | + }, |
| 60 | + "path_match": "attributes.*", |
| 61 | + "match_mapping_type": "double" |
| 62 | + } |
| 63 | + }, |
| 64 | + { |
| 65 | + "string_attributes": { |
| 66 | + "mapping": { |
14 | 67 | "type": "keyword",
|
15 | 68 | "ignore_above": 256
|
16 |
| - } |
| 69 | + }, |
| 70 | + "path_match": "attributes.*", |
| 71 | + "match_mapping_type": "string" |
17 | 72 | }
|
18 |
| - }, |
19 |
| - "droppedEventsCount": { |
| 73 | + } |
| 74 | + ], |
| 75 | + "properties": { |
| 76 | + "droppedAttributesCount": { |
20 | 77 | "type": "integer"
|
21 | 78 | },
|
22 |
| - "attributes": { |
23 |
| - "type": "object", |
| 79 | + "instrumentationScope": { |
24 | 80 | "properties": {
|
25 |
| - "data_stream": { |
26 |
| - "properties": { |
27 |
| - "dataset": { |
28 |
| - "ignore_above": 128, |
29 |
| - "type": "keyword" |
30 |
| - }, |
31 |
| - "namespace": { |
32 |
| - "ignore_above": 128, |
33 |
| - "type": "keyword" |
34 |
| - }, |
35 |
| - "type": { |
36 |
| - "ignore_above": 56, |
37 |
| - "type": "keyword" |
38 |
| - } |
39 |
| - } |
| 81 | + "droppedAttributesCount": { |
| 82 | + "type": "integer" |
| 83 | + }, |
| 84 | + "schemaUrl": { |
| 85 | + "type": "keyword", |
| 86 | + "ignore_above": 256 |
| 87 | + }, |
| 88 | + "name": { |
| 89 | + "type": "keyword", |
| 90 | + "ignore_above": 128 |
| 91 | + }, |
| 92 | + "version": { |
| 93 | + "type": "keyword", |
| 94 | + "ignore_above": 64 |
40 | 95 | }
|
41 | 96 | }
|
42 | 97 | },
|
43 | 98 | "resource": {
|
44 | 99 | "properties": {
|
45 |
| - "attributes": { |
46 |
| - "type": "object" |
47 |
| - }, |
48 |
| - "droppedEventsCount": { |
49 |
| - "type": "integer" |
50 |
| - } |
| 100 | + "droppedAttributesCount": { |
| 101 | + "type": "integer" |
| 102 | + }, |
| 103 | + "schemaUrl": { |
| 104 | + "type": "keyword", |
| 105 | + "ignore_above": 256 |
| 106 | + } |
51 | 107 | }
|
52 | 108 | },
|
| 109 | + "name": { |
| 110 | + "type": "keyword", |
| 111 | + "ignore_above": 256 |
| 112 | + }, |
53 | 113 | "description": {
|
54 | 114 | "type": "text",
|
55 | 115 | "fields": {
|
|
60 | 120 | }
|
61 | 121 | },
|
62 | 122 | "flags": {
|
63 |
| - "type": "integer" |
| 123 | + "type": "long" |
64 | 124 | },
|
65 | 125 | "unit": {
|
66 | 126 | "type": "keyword",
|
67 | 127 | "ignore_above": 128
|
68 | 128 | },
|
69 | 129 | "kind": {
|
70 | 130 | "type": "keyword",
|
71 |
| - "ignore_above": 128 |
| 131 | + "ignore_above": 32 |
72 | 132 | },
|
73 | 133 | "aggregationTemporality": {
|
74 | 134 | "type": "keyword",
|
75 |
| - "ignore_above": 128 |
| 135 | + "ignore_above": 64 |
76 | 136 | },
|
77 | 137 | "monotonic": {
|
78 | 138 | "type": "boolean"
|
79 | 139 | },
|
80 | 140 | "startTime": {
|
81 |
| - "type": "date" |
| 141 | + "type": "date_nanos" |
82 | 142 | },
|
83 | 143 | "@timestamp": {
|
84 |
| - "type": "date" |
85 |
| - }, |
86 |
| - "time": { |
87 | 144 | "type": "date_nanos"
|
88 | 145 | },
|
89 |
| - "observedTimestamp": { |
| 146 | + "time": { |
90 | 147 | "type": "date_nanos"
|
91 | 148 | },
|
92 | 149 | "value@int": {
|
93 |
| - "type": "integer" |
| 150 | + "type": "long" |
94 | 151 | },
|
95 | 152 | "value@double": {
|
96 | 153 | "type": "double"
|
|
108 | 165 | "type": "double"
|
109 | 166 | },
|
110 | 167 | "max": {
|
111 |
| - "type": "float" |
| 168 | + "type": "double" |
112 | 169 | },
|
113 | 170 | "min": {
|
114 |
| - "type": "float" |
| 171 | + "type": "double" |
115 | 172 | }
|
116 | 173 | }
|
117 | 174 | },
|
|
122 | 179 | "type": "long"
|
123 | 180 | },
|
124 | 181 | "explicitBoundsList": {
|
125 |
| - "type": "float" |
| 182 | + "type": "double" |
126 | 183 | },
|
127 | 184 | "explicitBoundsCount": {
|
128 |
| - "type": "float" |
| 185 | + "type": "double" |
129 | 186 | },
|
130 | 187 | "quantiles": {
|
131 | 188 | "properties": {
|
|
147 | 204 | "type": "long"
|
148 | 205 | },
|
149 | 206 | "max": {
|
150 |
| - "type": "float" |
| 207 | + "type": "double" |
151 | 208 | },
|
152 | 209 | "min": {
|
153 |
| - "type": "float" |
| 210 | + "type": "double" |
154 | 211 | }
|
155 | 212 | }
|
156 | 213 | },
|
|
161 | 218 | "type": "long"
|
162 | 219 | },
|
163 | 220 | "max": {
|
164 |
| - "type": "float" |
| 221 | + "type": "double" |
165 | 222 | },
|
166 | 223 | "min": {
|
167 |
| - "type": "float" |
| 224 | + "type": "double" |
168 | 225 | }
|
169 | 226 | }
|
170 | 227 | },
|
|
181 | 238 | "type": "long"
|
182 | 239 | },
|
183 | 240 | "max": {
|
184 |
| - "type": "float" |
| 241 | + "type": "double" |
185 | 242 | },
|
186 | 243 | "min": {
|
187 |
| - "type": "float" |
| 244 | + "type": "double" |
188 | 245 | },
|
189 | 246 | "sum": {
|
190 |
| - "type": "float" |
| 247 | + "type": "double" |
191 | 248 | },
|
192 | 249 | "count": {
|
193 | 250 | "type": "long"
|
|
204 | 261 | "spanId": {
|
205 | 262 | "ignore_above": 256,
|
206 | 263 | "type": "keyword"
|
207 |
| - } |
208 |
| - } |
209 |
| - }, |
210 |
| - "instrumentationScope": { |
211 |
| - "properties": { |
212 |
| - "name": { |
213 |
| - "type": "text", |
214 |
| - "fields": { |
215 |
| - "keyword": { |
216 |
| - "type": "keyword", |
217 |
| - "ignore_above": 128 |
218 |
| - } |
219 |
| - } |
220 | 264 | },
|
221 |
| - "version": { |
222 |
| - "type": "text", |
223 |
| - "fields": { |
224 |
| - "keyword": { |
225 |
| - "type": "keyword", |
226 |
| - "ignore_above": 256 |
227 |
| - } |
228 |
| - } |
| 265 | + "value@int": { |
| 266 | + "type": "long" |
229 | 267 | },
|
230 |
| - "droppedAttributesCount": { |
231 |
| - "type": "integer" |
| 268 | + "value@double": { |
| 269 | + "type": "double" |
232 | 270 | },
|
233 |
| - "attributes": { |
234 |
| - "type": "object" |
235 |
| - } |
236 |
| - } |
237 |
| - } |
238 |
| - }, |
239 |
| - "schemaUrl": { |
240 |
| - "type": "text", |
241 |
| - "fields": { |
242 |
| - "keyword": { |
243 |
| - "type": "keyword", |
244 |
| - "ignore_above": 256 |
| 271 | + "value": { |
| 272 | + "type": "double" |
245 | 273 | }
|
246 | 274 | }
|
247 | 275 | }
|
248 | 276 | }
|
249 | 277 | }
|
250 | 278 | }
|
251 | 279 | }
|
252 |
| - |
|
0 commit comments