Skip to content

Commit

Permalink
[RUM-6581] Add other feature flag collection event (#244)
Browse files Browse the repository at this point in the history
* Add other feature flag collection

* remove default values

* change init parameter name

* update description
  • Loading branch information
RomanGaignault authored Jan 14, 2025
1 parent 90e3a74 commit a48cdd6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/cjs/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & {
*/
is_main_process?: boolean;
/**
* The list of events that include feature flags collection
* The list of events that include feature flags collection. The tracking is always enabled for views and errors.
*/
collect_feature_flags_on?: ('view' | 'error' | 'vital')[];
track_feature_flags_for_events?: ('vital' | 'resource' | 'action' | 'long_task')[];
/**
* Whether the anonymous users are tracked
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/esm/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & {
*/
is_main_process?: boolean;
/**
* The list of events that include feature flags collection
* The list of events that include feature flags collection. The tracking is always enabled for views and errors.
*/
collect_feature_flags_on?: ('view' | 'error' | 'vital')[];
track_feature_flags_for_events?: ('vital' | 'resource' | 'action' | 'long_task')[];
/**
* Whether the anonymous users are tracked
*/
Expand Down
2 changes: 1 addition & 1 deletion samples/telemetry-events/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"option_foo": "bar"
}
],
"collect_feature_flags_on": ["error", "view", "vital"]
"track_feature_flags_for_events": ["long_task", "resource", "vital"]
}
}
}
6 changes: 3 additions & 3 deletions schemas/telemetry/configuration-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,13 @@
"type": "boolean",
"description": "Whether the SDK is initialised on the application's main or a secondary process"
},
"collect_feature_flags_on": {
"track_feature_flags_for_events": {
"type": "array",
"items": {
"type": "string",
"enum": ["view", "error", "vital"]
"enum": ["vital", "resource", "action", "long_task"]
},
"description": "The list of events that include feature flags collection"
"description": "The list of events that include feature flags collection. The tracking is always enabled for views and errors."
},
"track_anonymous_user": {
"type": "boolean",
Expand Down

0 comments on commit a48cdd6

Please sign in to comment.