Right now vroomrs assumes that any profile coming from platform="android" is in the legacy android tracer format, although version="2" is set, describing the sample v2 format.
See:
https://github.com/getsentry/vroomrs/blob/281554a228d48c6ad2d87a531767e8f2cae2fae7/src/profile_chunk.rs#L43-L61
Relay will start emitting a new version="2-android-trace" soon, so we should add support for that.
Action items:
- Add support for new version
- Deprecate from_json_vec_and_platform in favor of new from_json_vec_and_version
- Adapt from_json_vec to also support new version
Right now vroomrs assumes that any profile coming from
platform="android"is in the legacy android tracer format, althoughversion="2"is set, describing the sample v2 format.See:
https://github.com/getsentry/vroomrs/blob/281554a228d48c6ad2d87a531767e8f2cae2fae7/src/profile_chunk.rs#L43-L61
Relay will start emitting a new
version="2-android-trace"soon, so we should add support for that.Action items: