Source maps is an experimental feature not intended for production usage at the moment.
Uploaded source maps are used to map stack trace information from recorded transaction and error documents to the original source code files for easier debugging.
How source maps are appliededit
The server tries to find an uploaded source map for every
stack trace frame of the record.
The following information is used to find the previously uploaded source map entry:
service.nameis matched against the source map’s
service.versionis matched against the source map’s
the stack trace frame’s
abs_pathis matched against the source map’s
If multiple source maps with the same meta information are found, the source map with the latest upload timestamp is used.
In case a matching source map is found and the source map can be applied to the
stack trace frame,
the frame’s information is updated with the mapped information before the record is indexed.
The following information is changed to reflect the original source code file, when source mapping is applied:
abs path: is cleaned to be the shortest path name equivalent to the given path name
See how an example source map looks like in Elasticsearch.