[APM] Fleet: Introduce API for uploading source maps for RUM #95393
Labels
apm:fleet
enhancement
New value added to drive a business result
Team:APM
All issues that need APM UI Team support
v7.14.0
APM Server has an API endpoint for users to upload source maps for RUM: https://www.elastic.co/guide/en/apm/server/current/sourcemap-api.html. Users upload source maps using this API, and then APM Server fetches the source maps back out of Elasticsearch when RUM events are received, in order to map from generated back to source locations in stacktrace frames.
As part of the move to Fleet we will need to move away from fetching source maps directly from (and indexing source maps into) Elasticsearch, as the privileges APM Server is given do not cover this.
I propose that we introduce an API endpoint to Kibana that is roughly equivalent: users will upload source maps to Kibana (e.g.
/api/apm/sourcemaps
), and then:After the server receives the Fleet policy update, it will fetch the source map from Fleet Server, using the given artifact download URL. See elastic/apm-server#5002.
Although the current API is probably not ideal, I think we should make the API in Kibana as close to it as possible. This will simplify users' migration of uploading from APM Server to Kibana.
I've written some horrible POC code for reference: axw@e529752
The text was updated successfully, but these errors were encountered: