Environment Variables¶
Environment variables are a convenient configuration method that allow you to remotely adjust the data collection configurations of DataKit and RUM on the platform. Depending on different application environments, you can flexibly modify the behavior of DataKit and RUM. DataKit and RUM will automatically synchronize with the latest environment variables and optimize their data collection strategies accordingly, simplifying the configuration process.
Scope¶
Adding 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.
User Analysis¶
- Select an application;
- Fill in the SDK configuration parameters fields;
- After defining the application and fields, the system automatically defines the variable name;
- Define the variable value;
- Add a description as needed;
- Save.
Field Format¶
Three formats are supported:
- String (maximum 100 characters)
- Number (no upper limit)
- Boolean
The environment variables of the RUM SDK will eventually be linked with the Application ID. For initialization parameters, refer to the key fields provided by the system.
Managing Variables¶
After creating variables, you can view them in the Manage > Environment Variables list page. The following operations are available:
- Edit: Update the name and description of the variable;
- Delete: Remove the current variable;
- Search: Quickly locate by entering the variable name in the search box;
- Filter: Quickly filter based on applications under the "User Analysis" page;
- Click the button in the top-right corner of the page to export or import JSON variable configurations.