@coralogix/rum-cli 1.1.21 → 1.1.22
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 +8 -4
- package/api/rum-api.ts +1 -1
- package/cli/commands/delete-source-maps-command.ts +1 -1
- package/cli/commands/index.ts +5 -4
- package/cli/commands/update-source-maps-command.ts +1 -1
- package/cli/commands/upload-react-native-source-maps-command.ts +39 -0
- package/cli/commands/upload-source-maps-command.ts +1 -1
- package/cli/rum-cli.ts +8 -7
- package/dist/api/rum-api.js +2 -2
- package/dist/cli/commands/delete-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/delete-source-maps-command.js +4 -4
- package/dist/cli/commands/index.d.ts +4 -3
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/update-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/update-source-maps-command.js +4 -4
- package/dist/cli/commands/upload-react-native-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/upload-react-native-source-maps-command.js +47 -0
- package/dist/cli/commands/upload-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/upload-source-maps-command.js +4 -4
- package/dist/cli/rum-cli.js +9 -7
- package/dist/proto-models/com/coralogix/rum/v2/analytics.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/analytics.js +115 -102
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.js +5 -3
- package/dist/proto-models/com/coralogix/rum/v2/chunk.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +54 -49
- package/dist/proto-models/com/coralogix/rum/v2/file.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/file.js +24 -34
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.d.ts +69 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.js +189 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.d.ts +526 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +1560 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +98 -3
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +475 -127
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.d.ts +1 -59
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +4 -175
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.d.ts +261 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.js +698 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +65 -41
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.d.ts +55 -0
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +267 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.d.ts +109 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.js +580 -0
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +47 -24
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +43 -38
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +14 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +148 -54
- package/dist/proto-models/google/protobuf/descriptor.d.ts +1 -1
- package/dist/proto-models/google/protobuf/descriptor.js +537 -427
- package/dist/services/react-native-source-maps.service.d.ts +3 -0
- package/dist/services/react-native-source-maps.service.js +42 -0
- package/dist/services/source-maps.service.js +3 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +4 -4
- package/package.json +1 -1
- package/proto-models/com/coralogix/rum/v2/analytics.ts +113 -108
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +6 -4
- package/proto-models/com/coralogix/rum/v2/chunk.ts +55 -56
- package/proto-models/com/coralogix/rum/v2/file.ts +25 -39
- package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +223 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +1837 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +533 -146
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +1 -208
- package/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.ts +818 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +65 -46
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +301 -0
- package/proto-models/com/coralogix/rum/v2/snooze_errors.ts +656 -0
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +48 -27
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +44 -44
- package/proto-models/com/coralogix/rum/v2/template.ts +161 -59
- package/proto-models/google/protobuf/descriptor.ts +551 -464
- package/protofetch.lock +2 -2
- package/protofetch.toml +1 -1
- package/protos/com/coralogix/rum/v2/rum_react_native_source_map_service.proto +19 -0
- package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +128 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +26 -0
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +1 -12
- package/protos/com/coralogix/rum/v2/rum_snooze_errors_service.proto +64 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +1 -1
- package/protos/com/coralogix/rum/v2/saved_filter.proto +28 -0
- package/protos/com/coralogix/rum/v2/snooze_errors.proto +55 -0
- package/protos/com/coralogix/rum/v2/template.proto +6 -0
- package/protoset.bin +0 -0
- package/services/react-native-source-maps.service.ts +40 -0
- package/services/source-maps.service.ts +2 -2
- package/utils/index.ts +3 -3
package/protofetch.lock
CHANGED
|
@@ -2,10 +2,10 @@ module_name = "rum-cli"
|
|
|
2
2
|
proto_out_dir = "protos"
|
|
3
3
|
|
|
4
4
|
[[dependencies]]
|
|
5
|
-
commit_hash = "
|
|
5
|
+
commit_hash = "ce4f3378f80a7c8d4a45e1bd5c2c7294c61e77c3"
|
|
6
6
|
|
|
7
7
|
[[dependencies.specifications]]
|
|
8
|
-
revision = "v0.
|
|
8
|
+
revision = "v0.6.9"
|
|
9
9
|
|
|
10
10
|
[dependencies.coordinate]
|
|
11
11
|
forge = "github.com"
|
package/protofetch.toml
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package com.coralogix.rum.v2;
|
|
3
|
+
|
|
4
|
+
import "com/coralogix/rum/v2/file.proto";
|
|
5
|
+
|
|
6
|
+
message UploadReactNativeSourceMapsRequest {
|
|
7
|
+
string application = 1;
|
|
8
|
+
string release_id = 2;
|
|
9
|
+
optional string commit_hash = 3;
|
|
10
|
+
optional string repo_name = 4;
|
|
11
|
+
optional string user = 5;
|
|
12
|
+
repeated FileMetadata files = 6;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message UploadReactNativeSourceMapsResponse {}
|
|
16
|
+
|
|
17
|
+
service RumReactNativeSourceMapService {
|
|
18
|
+
rpc UploadReactNativeSourceMaps(UploadReactNativeSourceMapsRequest) returns (UploadReactNativeSourceMapsResponse) {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package com.coralogix.rum.v2;
|
|
3
|
+
|
|
4
|
+
import "com/coralogix/rum/v2/saved_filter.proto";
|
|
5
|
+
|
|
6
|
+
message GetSavedFiltersRequest {
|
|
7
|
+
Page page = 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message GetSavedFiltersResponse {
|
|
11
|
+
repeated SavedFilter saved_filters = 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message CreateSavedFilterRequest {
|
|
15
|
+
string name = 1;
|
|
16
|
+
string query_def = 2;
|
|
17
|
+
Page page = 3;
|
|
18
|
+
SavedFilterPermission permission = 4;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message CreateSavedFilterResponse {
|
|
22
|
+
SavedFilterBasicProperties saved_filters = 1;
|
|
23
|
+
SavedFilterPermission permission = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message UpdateSavedFilterRequest {
|
|
27
|
+
SavedFilterBasicProperties saved_filter = 1;
|
|
28
|
+
SavedFilterPermission permission = 2;
|
|
29
|
+
string query_def = 3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message UpdateSavedFilterResponse {
|
|
33
|
+
SavedFilterBasicProperties saved_filter = 1;
|
|
34
|
+
SavedFilterPermission permission = 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message DeleteSavedFilterRequest {
|
|
38
|
+
string id = 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message DeleteSavedFilterResponse {
|
|
42
|
+
SavedFilterBasicProperties saved_filter = 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message SaveFavoriteFilterRequest {
|
|
46
|
+
string saved_filter_id = 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message SaveFavoriteFilterResponse {
|
|
50
|
+
string favorite_id = 1;
|
|
51
|
+
string saved_filter_id = 2;
|
|
52
|
+
string user_id = 3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message RemoveFavoriteFilterRequest {
|
|
56
|
+
string favorite_id = 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message RemoveFavoriteFilterResponse {
|
|
60
|
+
string favorite_id = 1;
|
|
61
|
+
string saved_filter_id = 2;
|
|
62
|
+
string user_id = 3;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message GetSavedFilterQueryDefRequest {
|
|
66
|
+
string id = 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message GetSavedFilterQueryDefResponse {
|
|
70
|
+
string query_def = 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message SetDefaultSavedFilterRequest {
|
|
74
|
+
string id = 1;
|
|
75
|
+
Page page = 2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message SetDefaultSavedFilterResponse {
|
|
79
|
+
string default_id = 1;
|
|
80
|
+
Page page = 2;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message GetDefaultSavedFilterRequest {
|
|
84
|
+
Page page = 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message GetDefaultSavedFilterResponse {
|
|
88
|
+
string query_def = 1;
|
|
89
|
+
string id = 2;
|
|
90
|
+
string default_id = 3;
|
|
91
|
+
bool is_exist = 4;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
message RemoveDefaultSavedFilterRequest {
|
|
95
|
+
string default_id = 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message RemoveDefaultSavedFilterResponse {
|
|
99
|
+
string saved_filter_id = 1;
|
|
100
|
+
string default_id = 2;
|
|
101
|
+
string user_id = 3;
|
|
102
|
+
Page page = 4;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message ReplaceDefaultSavedFilterRequest {
|
|
106
|
+
string saved_filter_id = 1;
|
|
107
|
+
Page page = 2;
|
|
108
|
+
string old_saved_filter_id = 3;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message ReplaceDefaultSavedFilterResponse {
|
|
112
|
+
string default_id = 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
service RumSavedFiltersService {
|
|
116
|
+
rpc GetSavedFilters(GetSavedFiltersRequest) returns (GetSavedFiltersResponse) {}
|
|
117
|
+
rpc CreateSavedFilter(CreateSavedFilterRequest) returns (CreateSavedFilterResponse) {}
|
|
118
|
+
rpc UpdateSavedFilter(UpdateSavedFilterRequest) returns (UpdateSavedFilterResponse) {}
|
|
119
|
+
rpc DeleteSavedFilter(DeleteSavedFilterRequest) returns (DeleteSavedFilterResponse) {}
|
|
120
|
+
rpc SaveFavoriteFilter(SaveFavoriteFilterRequest) returns (SaveFavoriteFilterResponse) {}
|
|
121
|
+
rpc RemoveFavoriteFilter(RemoveFavoriteFilterRequest) returns (RemoveFavoriteFilterResponse) {}
|
|
122
|
+
rpc GetSavedFilterQueryDef(GetSavedFilterQueryDefRequest) returns (GetSavedFilterQueryDefResponse) {}
|
|
123
|
+
rpc SetDefaultSavedFilter(SetDefaultSavedFilterRequest) returns (SetDefaultSavedFilterResponse) {}
|
|
124
|
+
rpc GetDefaultSavedFilter(GetDefaultSavedFilterRequest) returns (GetDefaultSavedFilterResponse) {}
|
|
125
|
+
rpc RemoveDefaultSavedFilter(RemoveDefaultSavedFilterRequest) returns (RemoveDefaultSavedFilterResponse) {}
|
|
126
|
+
rpc ReplaceDefaultSavedFilter(ReplaceDefaultSavedFilterRequest) returns (ReplaceDefaultSavedFilterResponse) {}
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -21,6 +21,22 @@ message GetMappedStackTraceResponse {
|
|
|
21
21
|
optional string user = 6;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
message GetMappedStackTraceReactNativeRequest {
|
|
26
|
+
string application = 1;
|
|
27
|
+
string release_id = 2;
|
|
28
|
+
repeated Chunk chunks = 3;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message GetMappedStackTraceReactNativeResponse {
|
|
32
|
+
string application = 1;
|
|
33
|
+
string release_id = 2;
|
|
34
|
+
repeated MappedChunk mapped_chunks = 3;
|
|
35
|
+
optional string commit_hash = 4;
|
|
36
|
+
optional string repo_name = 5;
|
|
37
|
+
optional string user = 6;
|
|
38
|
+
}
|
|
39
|
+
|
|
24
40
|
message GetRumTemplatesRequest {
|
|
25
41
|
int64 start_time = 1;
|
|
26
42
|
int64 end_time = 2;
|
|
@@ -36,6 +52,14 @@ message GetRumTemplatesResponse {
|
|
|
36
52
|
int64 number_of_rows = 2;
|
|
37
53
|
}
|
|
38
54
|
|
|
55
|
+
message GetRumTemplatesDatesRequest {
|
|
56
|
+
repeated string template_ids = 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message GetRumTemplatesDatesResponse {
|
|
60
|
+
repeated TemplateDate templates_dates = 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
message GetSourceMapReleasesRequest {
|
|
40
64
|
optional string application = 1;
|
|
41
65
|
}
|
|
@@ -78,8 +102,10 @@ message GetAnalyticsStreamResponse {
|
|
|
78
102
|
service RumService {
|
|
79
103
|
rpc GetMappedStackTrace(GetMappedStackTraceRequest) returns (GetMappedStackTraceResponse) {}
|
|
80
104
|
rpc GetRumTemplates(GetRumTemplatesRequest) returns (GetRumTemplatesResponse) {}
|
|
105
|
+
rpc GetRumTemplatesDates(GetRumTemplatesDatesRequest) returns (GetRumTemplatesDatesResponse) {}
|
|
81
106
|
rpc GetSourceMapReleases(GetSourceMapReleasesRequest) returns (GetSourceMapReleasesResponse) {}
|
|
82
107
|
rpc GetSourceMapReleasesInternal(GetSourceMapReleasesInternalRequest) returns (GetSourceMapReleasesInternalResponse) {}
|
|
83
108
|
rpc GetReleasesSeriesPoints(GetReleasesSeriesPointsRequest) returns (GetReleasesSeriesPointsResponse) {}
|
|
84
109
|
rpc GetAnalyticsStream(GetAnalyticsStreamRequest) returns (stream GetAnalyticsStreamResponse) {}
|
|
110
|
+
rpc GetMappedStackTraceReactNative(GetMappedStackTraceReactNativeRequest) returns (GetMappedStackTraceReactNativeResponse) {}
|
|
85
111
|
}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package com.coralogix.rum.v2;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
string session_id = 1;
|
|
6
|
-
string application = 2;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
message GetSessionRecordingResponse {
|
|
10
|
-
bytes session_recordings = 1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
service RumSessionRecordingService {
|
|
14
|
-
rpc GetSessionRecording(GetSessionRecordingRequest) returns (GetSessionRecordingResponse) {}
|
|
15
|
-
}
|
|
4
|
+
service RumSessionRecordingService {}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package com.coralogix.rum.v2;
|
|
3
|
+
|
|
4
|
+
import "com/coralogix/rum/v2/snooze_errors.proto";
|
|
5
|
+
|
|
6
|
+
message CreateSnoozeErrorRequest {
|
|
7
|
+
oneof snooze_type {
|
|
8
|
+
string template_id = 1;
|
|
9
|
+
Categories category = 2;
|
|
10
|
+
}
|
|
11
|
+
oneof snooze_condition {
|
|
12
|
+
TimeCondition time_condition = 3;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message CreateSnoozeErrorResponse {
|
|
17
|
+
string id = 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message UpdateSnoozeErrorRequest {
|
|
21
|
+
oneof snooze_type {
|
|
22
|
+
string template_id = 1;
|
|
23
|
+
Categories category = 2;
|
|
24
|
+
}
|
|
25
|
+
oneof snooze_condition {
|
|
26
|
+
TimeCondition time_condition = 3;
|
|
27
|
+
}
|
|
28
|
+
string id = 4;
|
|
29
|
+
}
|
|
30
|
+
message UpdateSnoozeErrorResponse {
|
|
31
|
+
string id = 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message GetActiveSnoozeErrorRequest {
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message GetActiveSnoozeErrorResponse {
|
|
38
|
+
repeated string template_id = 1;
|
|
39
|
+
repeated Category category = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message GetManagementSnoozeErrorDataRequest {
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message GetManagementSnoozeErrorDataResponse {
|
|
47
|
+
repeated Management managements = 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message DeleteSnoozeErrorRequest {
|
|
51
|
+
string id = 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message DeleteSnoozeErrorResponse {
|
|
55
|
+
string id = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
service RumSnoozeErrorService {
|
|
59
|
+
rpc CreateSnoozeError(CreateSnoozeErrorRequest) returns (CreateSnoozeErrorResponse) {}
|
|
60
|
+
rpc UpdateSnoozeError(UpdateSnoozeErrorRequest) returns (UpdateSnoozeErrorResponse) {}
|
|
61
|
+
rpc DeleteSnoozeError(DeleteSnoozeErrorRequest) returns (DeleteSnoozeErrorResponse) {}
|
|
62
|
+
rpc GetActiveSnoozeError(GetActiveSnoozeErrorRequest) returns (GetActiveSnoozeErrorResponse) {}
|
|
63
|
+
rpc GetManagementSnoozeErrorData(GetManagementSnoozeErrorDataRequest) returns (GetManagementSnoozeErrorDataResponse) {}
|
|
64
|
+
}
|
|
@@ -36,4 +36,4 @@ service RumSourceMapService {
|
|
|
36
36
|
rpc UploadSourceMaps(UploadSourceMapsRequest) returns (UploadSourceMapsResponse) {}
|
|
37
37
|
rpc UpdateSourceMap(UpdateSourceMapRequest) returns (UpdateSourceMapResponse) {}
|
|
38
38
|
rpc DeleteSourceMap(DeleteSourceMapRequest) returns (DeleteSourceMapResponse) {}
|
|
39
|
-
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package com.coralogix.rum.v2;
|
|
3
|
+
|
|
4
|
+
message SavedFilterBasicProperties {
|
|
5
|
+
string name = 1;
|
|
6
|
+
string id = 2;
|
|
7
|
+
Page page = 3;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message SavedFilter {
|
|
11
|
+
SavedFilterBasicProperties saved_filter = 1;
|
|
12
|
+
bool is_favorite = 2;
|
|
13
|
+
optional string favorite_id = 3;
|
|
14
|
+
SavedFilterPermission permission = 4;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
enum Page {
|
|
18
|
+
PAGE_UNSPECIFIED = 0;
|
|
19
|
+
PAGE_ERROR_TRACKING = 1;
|
|
20
|
+
PAGE_USER_SESSION = 2;
|
|
21
|
+
PAGE_WEB_VITALS = 3;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enum SavedFilterPermission {
|
|
25
|
+
SAVED_FILTER_PERMISSION_UNSPECIFIED = 0;
|
|
26
|
+
SAVED_FILTER_PERMISSION_PRIVATE = 1;
|
|
27
|
+
SAVED_FILTER_PERMISSION_PUBLIC = 2;
|
|
28
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package com.coralogix.rum.v2;
|
|
3
|
+
|
|
4
|
+
enum SnoozeType {
|
|
5
|
+
SNOOZE_TYPE_UNSPECIFIED = 0;
|
|
6
|
+
SNOOZE_TYPE_TEMPLATE_ID = 1;
|
|
7
|
+
SNOOZE_TYPE_CATEGORY = 2;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
enum SnoozeCondition {
|
|
11
|
+
SNOOZE_CONDITION_UNSPECIFIED = 0;
|
|
12
|
+
SNOOZE_CONDITION_TIME = 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
enum SnoozeStatus {
|
|
16
|
+
SNOOZE_STATUS_UNSPECIFIED = 0;
|
|
17
|
+
SNOOZE_STATUS_ACTIVE = 1;
|
|
18
|
+
SNOOZE_STATUS_EXPIRING_SOON = 2;
|
|
19
|
+
SNOOZE_STATUS_UPDATED = 3;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message Category {
|
|
23
|
+
string key = 1;
|
|
24
|
+
repeated string values = 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message Categories {
|
|
28
|
+
repeated Category categories = 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message TimeCondition {
|
|
32
|
+
int64 end_time = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message TimeBasedSnooze {
|
|
36
|
+
oneof snooze_details {
|
|
37
|
+
Categories categories = 1;
|
|
38
|
+
string template = 2;
|
|
39
|
+
}
|
|
40
|
+
int64 end_time = 3;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message Management {
|
|
44
|
+
SnoozeType snooze_type = 1;
|
|
45
|
+
SnoozeCondition snooze_condition = 2;
|
|
46
|
+
SnoozeStatus snooze_status = 3;
|
|
47
|
+
int64 initial_time = 4;
|
|
48
|
+
int64 expires_time = 5;
|
|
49
|
+
oneof snooze_details {
|
|
50
|
+
string template = 6;
|
|
51
|
+
Categories categories = 7;
|
|
52
|
+
}
|
|
53
|
+
string id = 8;
|
|
54
|
+
}
|
|
55
|
+
|
package/protoset.bin
CHANGED
|
Binary file
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { RumApi } from '../api/rum-api';
|
|
2
|
+
import { GRAY_COLOR, GREEN_COLOR, RED_COLOR } from '../consts/consts';
|
|
3
|
+
import { traverseFolder } from '../utils';
|
|
4
|
+
import { UploadReactNativeSourceMapsRequest } from '../proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service';
|
|
5
|
+
|
|
6
|
+
export class ReactNativeSourceMapsService {
|
|
7
|
+
static async upload(
|
|
8
|
+
application: string,
|
|
9
|
+
version: string,
|
|
10
|
+
repoName: string | undefined,
|
|
11
|
+
commitHash: string | undefined,
|
|
12
|
+
orgName: string | undefined,
|
|
13
|
+
folderPath: string,
|
|
14
|
+
env: string,
|
|
15
|
+
privateKey: string,
|
|
16
|
+
): Promise<void> {
|
|
17
|
+
const request = UploadReactNativeSourceMapsRequest.create();
|
|
18
|
+
|
|
19
|
+
request.application = application;
|
|
20
|
+
request.releaseId = version;
|
|
21
|
+
request.repoName = repoName;
|
|
22
|
+
request.commitHash = commitHash;
|
|
23
|
+
request.user = orgName;
|
|
24
|
+
|
|
25
|
+
console.log(GRAY_COLOR, '🚀 Uploading react native source map...');
|
|
26
|
+
|
|
27
|
+
try {
|
|
28
|
+
await traverseFolder(folderPath, request, '.map');
|
|
29
|
+
|
|
30
|
+
await RumApi.uploadSourceMaps(request, env, privateKey);
|
|
31
|
+
|
|
32
|
+
console.log(GREEN_COLOR, '✅ React native source map uploaded successfully!');
|
|
33
|
+
console.log(GREEN_COLOR, `✅ Total chunk files processed: ${request.files.length}`);
|
|
34
|
+
console.log(GREEN_COLOR, '✅ Processing complete.');
|
|
35
|
+
} catch (error) {
|
|
36
|
+
console.log(RED_COLOR, '❌ An error occurred');
|
|
37
|
+
console.error(RED_COLOR, error);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -29,7 +29,7 @@ export class SourceMapsService {
|
|
|
29
29
|
console.log(GRAY_COLOR, '🚀 Uploading source maps...');
|
|
30
30
|
|
|
31
31
|
try {
|
|
32
|
-
await traverseFolder(folderPath, request);
|
|
32
|
+
await traverseFolder(folderPath, request, '.js.map');
|
|
33
33
|
|
|
34
34
|
await RumApi.uploadSourceMaps(request, env, privateKey);
|
|
35
35
|
|
|
@@ -65,7 +65,7 @@ export class SourceMapsService {
|
|
|
65
65
|
console.log(GRAY_COLOR, '🔄 Updating source maps...');
|
|
66
66
|
|
|
67
67
|
try {
|
|
68
|
-
await traverseFolder(folderPath, request);
|
|
68
|
+
await traverseFolder(folderPath, request, '.js.map');
|
|
69
69
|
|
|
70
70
|
await RumApi.updateSourceMap(request, env, privateKey);
|
|
71
71
|
|
package/utils/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { FileMetadata } from '../proto-models/com/coralogix/rum/v2/file';
|
|
|
8
8
|
|
|
9
9
|
const { readdir, stat, readFile } = fsPromises;
|
|
10
10
|
|
|
11
|
-
export const traverseFolder = async (folderPath: string, request: UploadSourceMapsRequest): Promise<void> => {
|
|
11
|
+
export const traverseFolder = async (folderPath: string, request: UploadSourceMapsRequest, suffix: string): Promise<void> => {
|
|
12
12
|
const stack: string[] = [folderPath];
|
|
13
13
|
|
|
14
14
|
while (stack.length) {
|
|
@@ -19,10 +19,10 @@ export const traverseFolder = async (folderPath: string, request: UploadSourceMa
|
|
|
19
19
|
entries.map(async (file: Dirent) => {
|
|
20
20
|
const { name } = file;
|
|
21
21
|
const entryPath = path.join(currentPath as string, name);
|
|
22
|
-
const
|
|
22
|
+
const isCorrectSuffix = file.isFile() && name.endsWith(suffix);
|
|
23
23
|
|
|
24
24
|
if (file.isDirectory()) stack.push(entryPath);
|
|
25
|
-
else if (
|
|
25
|
+
else if (isCorrectSuffix) request.files.push(await getFileMetadata(entryPath));
|
|
26
26
|
}),
|
|
27
27
|
);
|
|
28
28
|
}
|