上传符号表的域名和接口已分装在SDK中,默认支持手动上传和自动上传两种方式上传符号表;如果您想自定义上传符号表,请查阅本文内容。
APMPlus产品已在华北2(北京)
和亚太东南(柔佛)
两个地域开服,不同地域上传符号表的请求地址不同,详细信息如下:
https://console.volcengine.com/apmplus_api/eue/guest/app/mapping/upload
https://open.apmplus.ap-southeast-1.volces.com/apmplus_api/eue/guest/app/mapping/upload
请求头如下:
"Content-Type":"multipart/form-data; boundary=" + "---" + System.currentTimeMillis() + "---" long currentTime = System.currentTimeMillis(); MessageDigest digest = MessageDigest.getInstance("MD5") digest.update("${currentTime}${project.apminsightConfig.api_token}".getBytes()) "X-OpenApi-Timestamp": currentTime "X-OpenApi-Token": new BigInteger(1, digest.digest()).toString(16) "X-OpenApi-AppID": project.apminsightConfig.api_key "X-App-Ids": aid
api_token
和api_key
信息,请根据以下方式获取:
请求示例:
curl https://console.volcengine.com/apmplus_api/eue/guest/app/mapping/upload \ -F "type=Java" \ -F "os=Android" \ -F "aid=187277" \ -F "update_version_code=12345" \ -F "fileSize=819337" \ -F "file=@/Users/bytedance/code/Npth_toB/Npth/app/build/outputs/mapping/cnNoasanTob/release/mapping.txt" \ -H "X-OpenApi-Timestamp: 1656569613656" \ -H "X-OpenApi-Token: c42c7bfbebc6980eb0f19715***" \ -H "X-OpenApi-AppID: 4" -H "X-App-Ids: 187***" \ -H "Content-Type: multipart/form-data" \ -w %{http_code} -v