Tencent / matrix

Matrix is a plugin style, non-invasive APM system developed by WeChat.
Other
11.66k stars 1.89k forks source link

Fix app_uuid may be empty in the report 修复报告中 app_uuid 可能为空的问题 #843

Open tzuyangliu opened 1 year ago

tzuyangliu commented 1 year ago

原因: 当前使用 CFBundleName 构造 app name 和 app bundle name,但 CFBundleName 是支持多语言配置的,不同语言环境下读到的结果可能会不同;此时跟 image_info.dli_fname 做值比对时就不会认为是同一个,导致找不到当前 app image

修复方案: app name 和 app bundle name 使用 CFBundleExecutable 来获取二进制名,排除多语言环境的影响

tencent-adm commented 1 year ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


sheepliu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.