Environment Variables¶
Environment variables are a convenient configuration method that allows you to remotely adjust the data collection configuration for DataKit and RUM on the platform. Depending on the application environment, you can flexibly modify the behavior of DataKit and RUM. DataKit and RUM will automatically synchronize the latest environment variables and optimize their data collection strategies accordingly, simplifying the configuration process.
Scope¶
Add Variables¶
Note
- Variable names cannot be duplicated.
- Variable names and values cannot be empty.
DataKit¶
- Define the variable name.
- Enter the corresponding variable value.
- Add a description as needed.
- Save.
- To create continuously, check "Continue creating the next one" to keep the pop-up window open and continue adding the next variable.
RUM¶
- Select an application.
- Fill in the SDK configuration parameter field.
- After defining the application and field, the system automatically defines the variable name.
- Define the variable value.
- Add a description as needed.
- Save.
- To create continuously, check "Continue creating the next one" to keep the pop-up window open and continue adding the next variable.
Field Format¶
Three formats are supported:
| Format | Description |
|---|---|
| String (Str) | Up to 1000 characters |
| Number | No upper limit |
| Boolean | true/false |
The environment variables for the RUM SDK will ultimately be linked with the Application ID. For initialization parameters, you can refer to the key fields provided by the system.
Manage Variables¶
After variables are created, you can view them on the Manage > Environment Variables list page. You can perform the following operations:
- Edit: Update the variable name and description.
- Delete: Remove the current variable.
- Search: Enter the variable name in the search box to quickly locate it.
- Filter: On the "RUM" page, filter quickly based on the application.
- Click the button in the upper right corner of the page to export or import JSON variable configurations.
