Skip to content

Commit

Permalink
add collect_feature_flags_on property (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanGaignault authored Dec 9, 2024
1 parent f0fb638 commit f904c80
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/cjs/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions lib/esm/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion samples/telemetry-events/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"name": "foo",
"option_foo": "bar"
}
]
],
"collect_feature_flags_on": ["error", "view", "vital"]
}
}
}
8 changes: 8 additions & 0 deletions schemas/telemetry/configuration-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down

0 comments on commit f904c80

Please sign in to comment.