Commit b4013b3
fix(sample-data): exclude Observability (otel) sample set on AnalyticEngine data sources (#12216)
* fix(sample-data): exclude Observability (otel) sample set on AnalyticEngine
The sample data list route already limits the available sample sets for an
AnalyticEngine (Mustang) data source. It kept both 'logs' and 'otel', but the
Observability sample set (otel) cannot be installed on a Mustang domain: its
trace index mappings declare 'nested' fields (events/links), which the
pluggable data format rejects at index creation:
mapper_parsing_exception: nested type is not supported with pluggable data
format on field [links]
so the install fails with an internal server error
('Unable to install sample data set: Sample Observability Logs, Traces, and
Metrics'). Restrict the AnalyticEngine sample set list to 'logs' (Sample web
logs), which has no nested fields and installs cleanly.
Updates the route's unit test to assert only 'logs' is returned for an
AnalyticEngine data source; non-AnalyticEngine sources are unchanged.
Signed-off-by: Shenoy Pratik <pshenoy36@gmail.com>
* chore: add changelog fragment for #12216
Signed-off-by: Shenoy Pratik <pshenoy36@gmail.com>
* Update src/plugins/home/server/services/sample_data/routes/list.ts
Co-authored-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
---------
Signed-off-by: Shenoy Pratik <pshenoy36@gmail.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Co-authored-by: Joshua Li <joshuali925@gmail.com>1 parent dd7b404 commit b4013b3
3 files changed
Lines changed: 13 additions & 8 deletions
File tree
- changelogs/fragments
- src/plugins/home/server/services/sample_data/routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
346 | 347 | | |
347 | | - | |
348 | | - | |
| 348 | + | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
0 commit comments