[APM] Use _force_synthetic_source instead of fakeSyntheticSource #140255
Labels
apm:test-plan-done
Pull request that was successfully tested during the test plan
Team:APM
All issues that need APM UI Team support
v8.5.0
v8.6.0
We currently simulate synthetic source for metric documents by flattening and de-flattening _source. This is to get more guarantees about our UI being synthetic source-compatible. However, there is a better way to do this: Elasticsearch supports a
force_synthetic_source
query parameter that enforces re-hydration of _source in Elasticsearch. We should replace our usage offakeSyntheticSource
with this query parameter. It's probably best to set it behind a config parameter that we can enable in our API tests so it doesn't inadvertently break anything for our users.The text was updated successfully, but these errors were encountered: