diff --git a/lib/cjs/generated/telemetry.d.ts b/lib/cjs/generated/telemetry.d.ts index cd8af28..7d9d8b5 100644 --- a/lib/cjs/generated/telemetry.d.ts +++ b/lib/cjs/generated/telemetry.d.ts @@ -377,6 +377,10 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & { * Whether the SDK is initialised on the application's main or a secondary process */ is_main_process?: boolean; + /** + * The list of events that include feature flags collection + */ + collect_feature_flags_on?: ('view' | 'error' | 'vital')[]; [k: string]: unknown; }; [k: string]: unknown; diff --git a/lib/esm/generated/telemetry.d.ts b/lib/esm/generated/telemetry.d.ts index cd8af28..7d9d8b5 100644 --- a/lib/esm/generated/telemetry.d.ts +++ b/lib/esm/generated/telemetry.d.ts @@ -377,6 +377,10 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & { * Whether the SDK is initialised on the application's main or a secondary process */ is_main_process?: boolean; + /** + * The list of events that include feature flags collection + */ + collect_feature_flags_on?: ('view' | 'error' | 'vital')[]; [k: string]: unknown; }; [k: string]: unknown; diff --git a/samples/telemetry-events/configuration.json b/samples/telemetry-events/configuration.json index cc964a7..2929e16 100644 --- a/samples/telemetry-events/configuration.json +++ b/samples/telemetry-events/configuration.json @@ -66,7 +66,8 @@ "name": "foo", "option_foo": "bar" } - ] + ], + "collect_feature_flags_on": ["error", "view", "vital"] } } } diff --git a/schemas/telemetry/configuration-schema.json b/schemas/telemetry/configuration-schema.json index d4f18d5..37ea316 100644 --- a/schemas/telemetry/configuration-schema.json +++ b/schemas/telemetry/configuration-schema.json @@ -408,6 +408,14 @@ "is_main_process": { "type": "boolean", "description": "Whether the SDK is initialised on the application's main or a secondary process" + }, + "collect_feature_flags_on": { + "type": "array", + "items": { + "type": "string", + "enum": ["view", "error", "vital"] + }, + "description": "The list of events that include feature flags collection" } } }