RUM Configuration¶
This document is used to describe the RUM initialization configuration and manual collection entry points for the C++ SDK.
Initialize RUM¶
| Field | Type | Required | Description |
|---|---|---|---|
setRumAppId |
string | Yes | Set the RUM appid. RUM collection is only enabled after this is set. See Application Integration for how to obtain it |
setSamplingRate |
float | No | Sampling rate range [0,1]. 0 means no collection, 1 means full collection. Default value is 1. Scope applies to all View, Action, LongTask, and Error data under the same session_id. |
setExtraMonitorTypeWithError |
ErrorMonitorType | No | Attach monitoring information to RUM error data. MEMORY for memory, CPU for CPU, ALL for all. |
addGlobalContext |
dictionary | No | Add tag data for distinguishing user monitoring data sources. Please read Custom Tags for the rules. |
Manual Collection Capabilities¶
The C++ side currently mainly relies on manual interfaces to complete RUM data transmission. The following capabilities have been separated into Custom Collection Rules:
- View
- Action
- Resource
- Error
- LongTask
If you need to view specific APIs and example code, please read Custom Collection Rules directly.