Skip to content

Commit 0aaecb0

Browse files
authored
✨ add new configuration parameters to telemetry (#290)
1 parent 4c3e63b commit 0aaecb0

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

lib/cjs/generated/telemetry.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,18 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & {
417417
* Whether a list of allowed origins is used to control SDK execution in browser extension contexts. When enabled, the SDK will check if the current origin matches the allowed origins list before running.
418418
*/
419419
use_allowed_tracking_origins?: boolean;
420+
/**
421+
* The version of the SDK that is running.
422+
*/
423+
sdk_version?: string;
424+
/**
425+
* The source of the SDK, e.g., 'browser', 'ios', 'android', 'flutter', 'react-native', 'unity', 'kotlin-multiplatform'.
426+
*/
427+
source?: string;
428+
/**
429+
* The variant of the SDK build (e.g., standard, lite, etc.).
430+
*/
431+
variant?: string;
420432
[k: string]: unknown;
421433
};
422434
[k: string]: unknown;

lib/esm/generated/telemetry.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,18 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & {
417417
* Whether a list of allowed origins is used to control SDK execution in browser extension contexts. When enabled, the SDK will check if the current origin matches the allowed origins list before running.
418418
*/
419419
use_allowed_tracking_origins?: boolean;
420+
/**
421+
* The version of the SDK that is running.
422+
*/
423+
sdk_version?: string;
424+
/**
425+
* The source of the SDK, e.g., 'browser', 'ios', 'android', 'flutter', 'react-native', 'unity', 'kotlin-multiplatform'.
426+
*/
427+
source?: string;
428+
/**
429+
* The variant of the SDK build (e.g., standard, lite, etc.).
430+
*/
431+
variant?: string;
420432
[k: string]: unknown;
421433
};
422434
[k: string]: unknown;

schemas/telemetry/configuration-schema.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,21 @@
460460
"description": "Whether a list of allowed origins is used to control SDK execution in browser extension contexts. When enabled, the SDK will check if the current origin matches the allowed origins list before running.",
461461
"readOnly": false,
462462
"default": false
463+
},
464+
"sdk_version": {
465+
"type": "string",
466+
"description": "The version of the SDK that is running.",
467+
"readOnly": false
468+
},
469+
"source": {
470+
"type": "string",
471+
"description": "The source of the SDK, e.g., 'browser', 'ios', 'android', 'flutter', 'react-native', 'unity', 'kotlin-multiplatform'.",
472+
"readOnly": false
473+
},
474+
"variant": {
475+
"type": "string",
476+
"description": "The variant of the SDK build (e.g., standard, lite, etc.).",
477+
"readOnly": false
463478
}
464479
}
465480
}

0 commit comments

Comments
 (0)