Skip to content

Commit 0cafd9d

Browse files
authored
Add rum-cpp as a source type. (#354)
* Add `rum-cpp` as a source type. This is for our native C++ SDK. Additionally, add source_types for native stack trace formats (`windows`,`macos`, and `linux`)
1 parent 20f414a commit 0cafd9d

8 files changed

Lines changed: 27 additions & 12 deletions

File tree

lib/cjs/generated/rum.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewConta
286286
/**
287287
* Source type of the error (the language or platform impacting the error stacktrace format)
288288
*/
289-
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp';
289+
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp' | 'windows' | 'macos' | 'linux';
290290
/**
291291
* Resource properties of the error
292292
*/
@@ -1463,7 +1463,7 @@ export interface CommonProperties {
14631463
/**
14641464
* The source of this event
14651465
*/
1466-
readonly source?: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron';
1466+
readonly source?: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron' | 'rum-cpp';
14671467
/**
14681468
* View properties
14691469
*/
@@ -1779,7 +1779,7 @@ export interface ViewContainerSchema {
17791779
/**
17801780
* Source of the parent view
17811781
*/
1782-
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron';
1782+
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron' | 'rum-cpp';
17831783
[k: string]: unknown;
17841784
};
17851785
[k: string]: unknown;

lib/cjs/generated/telemetry.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export interface CommonTelemetryProperties {
529529
/**
530530
* The source of this event
531531
*/
532-
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity' | 'kotlin-multiplatform' | 'electron';
532+
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity' | 'kotlin-multiplatform' | 'electron' | 'rum-cpp';
533533
/**
534534
* The version of the SDK generating the telemetry event
535535
*/

lib/esm/generated/rum.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewConta
286286
/**
287287
* Source type of the error (the language or platform impacting the error stacktrace format)
288288
*/
289-
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp';
289+
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp' | 'windows' | 'macos' | 'linux';
290290
/**
291291
* Resource properties of the error
292292
*/
@@ -1463,7 +1463,7 @@ export interface CommonProperties {
14631463
/**
14641464
* The source of this event
14651465
*/
1466-
readonly source?: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron';
1466+
readonly source?: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron' | 'rum-cpp';
14671467
/**
14681468
* View properties
14691469
*/
@@ -1779,7 +1779,7 @@ export interface ViewContainerSchema {
17791779
/**
17801780
* Source of the parent view
17811781
*/
1782-
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron';
1782+
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'roku' | 'unity' | 'kotlin-multiplatform' | 'electron' | 'rum-cpp';
17831783
[k: string]: unknown;
17841784
};
17851785
[k: string]: unknown;

lib/esm/generated/telemetry.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export interface CommonTelemetryProperties {
529529
/**
530530
* The source of this event
531531
*/
532-
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity' | 'kotlin-multiplatform' | 'electron';
532+
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity' | 'kotlin-multiplatform' | 'electron' | 'rum-cpp';
533533
/**
534534
* The version of the SDK generating the telemetry event
535535
*/

schemas/rum/_common-schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
"roku",
9292
"unity",
9393
"kotlin-multiplatform",
94-
"electron"
94+
"electron",
95+
"rum-cpp"
9596
],
9697
"readOnly": true
9798
},

schemas/rum/_view-container-schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"roku",
3737
"unity",
3838
"kotlin-multiplatform",
39-
"electron"
39+
"electron",
40+
"rum-cpp"
4041
],
4142
"readOnly": true
4243
}

schemas/rum/error-schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@
127127
"roku",
128128
"ndk",
129129
"ios+il2cpp",
130-
"ndk+il2cpp"
130+
"ndk+il2cpp",
131+
"windows",
132+
"macos",
133+
"linux"
131134
],
132135
"readOnly": true
133136
},

schemas/telemetry/_common-schema.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,17 @@
3737
"source": {
3838
"type": "string",
3939
"description": "The source of this event",
40-
"enum": ["android", "ios", "browser", "flutter", "react-native", "unity", "kotlin-multiplatform", "electron"],
40+
"enum": [
41+
"android",
42+
"ios",
43+
"browser",
44+
"flutter",
45+
"react-native",
46+
"unity",
47+
"kotlin-multiplatform",
48+
"electron",
49+
"rum-cpp"
50+
],
4151
"readOnly": true
4252
},
4353
"version": {

0 commit comments

Comments
 (0)