@coralogix/rum-cli 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/assets/docs-illustration.png +0 -0
- package/package.json +1 -1
- package/protoset.bin +0 -0
package/README.md
CHANGED
|
@@ -6,8 +6,9 @@ The Coralogix RUM CLI is a command-line interface tool that simplifies the proce
|
|
|
6
6
|
|
|
7
7
|
## Links
|
|
8
8
|
|
|
9
|
-
- [Coralogix Real User Monitoring](https://coralogix.com/docs/real-user-monitoring/)
|
|
9
|
+
- [Coralogix Real User Monitoring Docs](https://coralogix.com/docs/real-user-monitoring/)
|
|
10
10
|
|
|
11
|
+
- [Coralogix SDK for Browsers](https://www.npmjs.com/package/@coralogix/browser)
|
|
11
12
|
## Installation
|
|
12
13
|
|
|
13
14
|
To install the Coralogix RUM CLI, follow these steps:
|
|
@@ -48,6 +49,8 @@ To use the CLI, execute the following command:
|
|
|
48
49
|
|
|
49
50
|
To simplify the process of uploading source maps using the Coralogix RUM CLI, you can create a bash script that automates the task. Follow these steps to set up the script:
|
|
50
51
|
|
|
52
|
+
## For CI Integration:
|
|
53
|
+
|
|
51
54
|
1. Create a new file named `upload-source-maps.sh` and open it for editing.
|
|
52
55
|
|
|
53
56
|
2. Copy and paste the following script into the file, replacing the placeholder values with your actual information:
|
|
@@ -62,22 +65,38 @@ APPLICATION="your-application-name"
|
|
|
62
65
|
ENV="your-environment"
|
|
63
66
|
SOURCE_MAPS_PATH="your-source-maps-path"
|
|
64
67
|
PRIVATE_KEY="your-coralogix-private-key"
|
|
68
|
+
RELEASE_ID="your-release-id"
|
|
65
69
|
|
|
66
70
|
# Get the commit hash using git rev-parse
|
|
67
71
|
COMMIT_HASH=$(git rev-parse HEAD)
|
|
68
72
|
|
|
69
|
-
# Calculate short hash for release name
|
|
70
|
-
RELEASE_NAME=${COMMIT_HASH:0:8}
|
|
71
|
-
|
|
72
73
|
# Run Coralogix RUM CLI to upload source maps
|
|
73
74
|
coralogix-rum-cli upload-source-maps -k "$PRIVATE_KEY" -a "$APPLICATION" -r "$RELEASE_NAME" -f "$SOURCE_MAPS_PATH" -e "$ENV" -c "$COMMIT_HASH" -n "$REPO_NAME" -o "$ORG_NAME"
|
|
74
75
|
```
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
<br>
|
|
78
|
+
|
|
79
|
+
| IMPORTANT: The $RELEASE_ID must align with the content of the version field in your CoralogixRum.init() configuration in [Coralogix SDK for Browsers](https://www.npmjs.com/package/@coralogix/browser) |
|
|
80
|
+
| --- |
|
|
81
|
+
|
|
82
|
+
## For Non-CI Integration:
|
|
83
|
+
1. Create a new file named upload-source-maps.sh and open it for editing.
|
|
84
|
+
|
|
85
|
+
2. Copy and paste the script provided above, and replace the placeholder values with your actual information.
|
|
77
86
|
|
|
87
|
+
3. Open a terminal window, navigate to the directory containing the upload-source-maps.sh script, and execute the script using the command:
|
|
88
|
+
|
|
89
|
+
If any of the required arguments are missing, the CLI will display an error message and exit.
|
|
78
90
|
|
|
79
91
|
Please ensure you provide valid values for the options when using the CLI.
|
|
80
92
|
|
|
93
|
+
By following these instructions, you can effortlessly upload source maps using the Coralogix RUM CLI script in both CI and non-CI environments.
|
|
94
|
+
|
|
95
|
+
# Illustration
|
|
96
|
+
Here's an overview of the process, showing the parsed stacktrace in the source map:
|
|
97
|
+
|
|
98
|
+

|
|
99
|
+
|
|
81
100
|
# Available Environments
|
|
82
101
|
|
|
83
102
|
The Coralogix RUM CLI supports the following environments:
|
|
@@ -101,7 +120,7 @@ The following options are optional and relate to GitHub information, providing c
|
|
|
101
120
|
|
|
102
121
|
|
|
103
122
|
- `-o, --org-name <orgName>`: This option enables you to input your GitHub organization user, helping to attribute the source maps to the appropriate organization user.
|
|
104
|
-
Providing these GitHub-related options can enhance the accuracy of source map management and issue tracking within Coralogix RUM. However, they are not mandatory and can be omitted if not applicable.
|
|
123
|
+
Providing these GitHub-related options can enhance the accuracy of source map management and issue tracking within Coralogix RUM. However, they are not mandatory and can be omitted if not applicable.
|
|
105
124
|
|
|
106
125
|
## License
|
|
107
126
|
|
|
Binary file
|
package/package.json
CHANGED
package/protoset.bin
CHANGED
|
Binary file
|