GetRumSymbolicStack
Retrieves the symbolicated stack trace for Real User Monitoring (RUM).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetRumSymbolicStack |
none |
*All Resource
|
None | None |
Request syntax
POST /rum/symbolic HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request information for symbolication of an exception stack trace. |
|
pid
deprecated
|
string |
No |
The application PID. [Deprecated] The server automatically resolves this value based on the workspace and serviceId. |
xxxojw@e3hd38hxxxx11 |
| workspace |
string |
Yes |
The name of the workspace to which the RUM application belongs. This parameter is required and cannot be an empty string. It must be used together with serviceId to locate the application. |
default-cms-1234567890-cn-hangzhou |
| serviceId |
string |
Yes |
The service ID of the RUM application. This parameter is required and cannot be an empty string. It must be used together with workspace to locate the application. |
a1b2c3d4e5@f67890 |
| stackType |
string |
Yes |
The type of the stack trace. This parameter is required and cannot be an empty string. Valid values: js, jvm, android-native, cocoa, electron-native, windows-native, and macos-native. |
jvm |
| stack |
string |
Yes |
The content of the original exception stack trace to be symbolicated. This parameter is required and cannot be an empty string. If stackType is set to js, the format is "line,column,rows". For other types, pass the original stack trace text of the corresponding platform. |
java.lang.NullPointerException at com.example.Main.main(Main.java:10) |
| images |
string |
No |
The binary image information associated with Native or Cocoa crashes. The format varies based on stackType (only electron-native uses a JSON array). For cocoa, it is a line-by-line string (each line is module:arch;uuid;loadAddress). For electron-native, it is a JSON array string (elements contain name, debug_id/debugId, or code_id/codeId, and optionally load_address/loadAddress and arch). For windows-native, it is a semicolon-separated string of debugId and debugFile (the .pdb file name). For macos-native, it is a semicolon-separated string of uuid and name. If matching information is missing, the symbol file is not found, or symbolication fails, Native and Cocoa types fall back to returning the original stack trace lines. The following example applies only to scenarios where stackType is electron-native and cannot be directly combined with stackType=jvm in a request. |
[{"name":"Electron Framework","debug_id":"ABCDEF01-2345-6789-ABCD-EF0123456789","code_id":"CODE-1","load_address":"0x0000000100000000","arch":"arm64"}] |
| threadId |
string |
No |
The ID of the exception thread. |
thread-1 |
| fileInfo |
string |
No |
The matching information of the symbol file, which varies based on stackType. For js, jvm, and android-native, it is a JSON string (js and jvm must contain both version and fileName, and optionally uuid or debugId; android-native supports a single module, a modules array, and il2cppMapping). For cocoa, it is a non-JSON format (module:objectKey;...) for historical compatibility only, and it is recommended to pass this information through images in the new version. If matching information is missing, the symbol is not found, or parsing fails for js, an empty result is returned. If fileInfo is missing or the symbol is not found for jvm, an empty result is returned, and it falls back to the original stack trace only when downstream symbolication fails. |
{"version":"1.0.0","fileName":"mapping.txt"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The ID of the request. |
request-1 |
| threadId |
string |
The ID of the exception thread. |
main-thread |
| lines |
array |
The list of stack trace lines after symbolication. |
["\\tat com.example.UserService.getUser(UserService.java:25)"] |
|
string |
A line in the stack trace. If the restoration is unsuccessful, the original stack trace line may be returned. |
at com.example.UserService.getUser(UserService.java:25) |
|
| source |
string |
The source file path restored by the JavaScript SourceMap. |
src/app.js |
| line |
integer |
The line number restored by the JavaScript SourceMap. |
42 |
| column |
integer |
The column number restored by the JavaScript SourceMap. |
10 |
| name |
string |
The symbol name restored by the JavaScript SourceMap. |
handleClick |
| traceInfo |
array |
The list of source code context lines. |
["line1"] |
|
string |
A line in the source code context. |
line1 |
|
| traceMarkLine |
integer |
The highlighted line number of the error line in traceInfo. |
1 |
Examples
Success response
JSON format
{
"requestId": "request-1",
"threadId": "main-thread",
"lines": [
"\tat com.example.UserService.getUser(UserService.java:25)"
],
"source": "src/app.js",
"line": 42,
"column": 10,
"name": "handleClick",
"traceInfo": [
"line1"
],
"traceMarkLine": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.