Skip to content

Commit 0e836ff

Browse files
satweeneloytoro
authored andcommitted
RUM-11253: supporting api usage event for feature operations (#297)
1 parent cbd988f commit 0e836ff

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

lib/cjs/generated/telemetry.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ export declare type TelemetryUsageEvent = CommonTelemetryProperties & {
459459
/**
460460
* Schema of features usage common across SDKs
461461
*/
462-
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation;
462+
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation | AddOperationStepVital;
463463
/**
464464
* Schema of browser specific features usage
465465
*/
@@ -770,6 +770,17 @@ export interface AddFeatureFlagEvaluation {
770770
feature: 'add-feature-flag-evaluation';
771771
[k: string]: unknown;
772772
}
773+
export interface AddOperationStepVital {
774+
/**
775+
* addOperationStepVital API
776+
*/
777+
feature: 'add-operation-step-vital';
778+
/**
779+
* Feature operations action type
780+
*/
781+
action_type: 'start' | 'succeed' | 'fail';
782+
[k: string]: unknown;
783+
}
773784
export interface StartSessionReplayRecording {
774785
/**
775786
* startSessionReplayRecording API

lib/esm/generated/telemetry.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ export declare type TelemetryUsageEvent = CommonTelemetryProperties & {
459459
/**
460460
* Schema of features usage common across SDKs
461461
*/
462-
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation;
462+
export declare type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | StartView | SetViewContext | SetViewContextProperty | SetViewName | GetViewContext | AddAction | AddError | GetGlobalContext | SetGlobalContext | SetGlobalContextProperty | RemoveGlobalContextProperty | ClearGlobalContext | GetUser | SetUser | SetUserProperty | RemoveUserProperty | ClearUser | GetAccount | SetAccount | SetAccountProperty | RemoveAccountProperty | ClearAccount | AddFeatureFlagEvaluation | AddOperationStepVital;
463463
/**
464464
* Schema of browser specific features usage
465465
*/
@@ -770,6 +770,17 @@ export interface AddFeatureFlagEvaluation {
770770
feature: 'add-feature-flag-evaluation';
771771
[k: string]: unknown;
772772
}
773+
export interface AddOperationStepVital {
774+
/**
775+
* addOperationStepVital API
776+
*/
777+
feature: 'add-operation-step-vital';
778+
/**
779+
* Feature operations action type
780+
*/
781+
action_type: 'start' | 'succeed' | 'fail';
782+
[k: string]: unknown;
783+
}
773784
export interface StartSessionReplayRecording {
774785
/**
775786
* startSessionReplayRecording API

schemas/telemetry/usage/common-features-schema.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,22 @@
284284
"const": "add-feature-flag-evaluation"
285285
}
286286
}
287+
},
288+
{
289+
"required": ["feature", "action_type"],
290+
"title": "AddOperationStepVital",
291+
"properties": {
292+
"feature": {
293+
"type": "string",
294+
"description": "addOperationStepVital API",
295+
"const": "add-operation-step-vital"
296+
},
297+
"action_type": {
298+
"type": "string",
299+
"description": "Feature operations action type",
300+
"enum": ["start", "succeed", "fail"]
301+
}
302+
}
287303
}
288304
]
289305
}

0 commit comments

Comments
 (0)