Skip to content

Commit 6c939c4

Browse files
RUM-14235: Add graphQL to telemetry usage
1 parent e1a3ffb commit 6c939c4

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

lib/cjs/generated/telemetry.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export type TelemetryUsageEvent = CommonTelemetryProperties & {
491491
/**
492492
* Schema of features usage common across SDKs
493493
*/
494-
export 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;
494+
export 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 | GraphQLRequest;
495495
/**
496496
* Schema of browser specific features usage
497497
*/
@@ -825,6 +825,13 @@ export interface AddOperationStepVital {
825825
action_type: 'start' | 'succeed' | 'fail';
826826
[k: string]: unknown;
827827
}
828+
export interface GraphQLRequest {
829+
/**
830+
* GraphQL request detected
831+
*/
832+
feature: 'graphql-request';
833+
[k: string]: unknown;
834+
}
828835
export interface StartSessionReplayRecording {
829836
/**
830837
* startSessionReplayRecording API

lib/esm/generated/telemetry.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export type TelemetryUsageEvent = CommonTelemetryProperties & {
491491
/**
492492
* Schema of features usage common across SDKs
493493
*/
494-
export 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;
494+
export 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 | GraphQLRequest;
495495
/**
496496
* Schema of browser specific features usage
497497
*/
@@ -825,6 +825,13 @@ export interface AddOperationStepVital {
825825
action_type: 'start' | 'succeed' | 'fail';
826826
[k: string]: unknown;
827827
}
828+
export interface GraphQLRequest {
829+
/**
830+
* GraphQL request detected
831+
*/
832+
feature: 'graphql-request';
833+
[k: string]: unknown;
834+
}
828835
export interface StartSessionReplayRecording {
829836
/**
830837
* startSessionReplayRecording API

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,17 @@
300300
"enum": ["start", "succeed", "fail"]
301301
}
302302
}
303+
},
304+
{
305+
"required": ["feature"],
306+
"title": "GraphQLRequest",
307+
"properties": {
308+
"feature": {
309+
"type": "string",
310+
"description": "GraphQL request detected",
311+
"const": "graphql-request"
312+
}
313+
}
303314
}
304315
]
305316
}

0 commit comments

Comments
 (0)