@coralogix/rum-cli 1.1.3 → 1.1.4

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 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,36 @@ 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
- If any of the required arguments are missing, the CLI will display an error message and exit.
77
+ | 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) |
78
+ | --- |
79
+
80
+ ## For Non-CI Integration:
81
+ 1. Create a new file named upload-source-maps.sh and open it for editing.
82
+
83
+ 2. Copy and paste the script provided above, and replace the placeholder values with your actual information.
77
84
 
85
+ 3. Open a terminal window, navigate to the directory containing the upload-source-maps.sh script, and execute the script using the command:
86
+
87
+ If any of the required arguments are missing, the CLI will display an error message and exit.
78
88
 
79
89
  Please ensure you provide valid values for the options when using the CLI.
80
90
 
91
+ By following these instructions, you can effortlessly upload source maps using the Coralogix RUM CLI script in both CI and non-CI environments.
92
+
93
+ # Illustration
94
+ Here's an overview of the process, showing the parsed stacktrace in the source map:
95
+
96
+ ![Screen Shot 2023-08-22 at 13.23.31.png](..%2FScreen%20Shot%202023-08-22%20at%2013.23.31.png)
97
+
81
98
  # Available Environments
82
99
 
83
100
  The Coralogix RUM CLI supports the following environments:
@@ -101,7 +118,7 @@ The following options are optional and relate to GitHub information, providing c
101
118
 
102
119
 
103
120
  - `-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.
121
+ 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
122
 
106
123
  ## License
107
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/rum-cli",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "corlogix rum cli",
5
5
  "bin": {
6
6
  "coralogix-rum-cli": "dist/cli/rum-cli.js"
package/protoset.bin CHANGED
Binary file