Skip to content

Commit

Permalink
Move performance namespace inside view
Browse files Browse the repository at this point in the history
  • Loading branch information
sethfowler-datadog committed Jan 13, 2025
1 parent 61e86d1 commit 5c0ca10
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 49 deletions.
8 changes: 4 additions & 4 deletions lib/cjs/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,10 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & {
* The JavaScript refresh rate for React Native
*/
js_refresh_rate?: RumPerfMetric;
/**
* Performance data. (Web Vitals, etc.)
*/
performance?: ViewPerformanceData;
[k: string]: unknown;
};
/**
Expand Down Expand Up @@ -1085,10 +1089,6 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & {
};
[k: string]: unknown;
};
/**
* Performance data. (Web Vitals, etc.)
*/
performance?: ViewPerformanceData;
[k: string]: unknown;
};
/**
Expand Down
8 changes: 4 additions & 4 deletions lib/esm/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,10 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & {
* The JavaScript refresh rate for React Native
*/
js_refresh_rate?: RumPerfMetric;
/**
* Performance data. (Web Vitals, etc.)
*/
performance?: ViewPerformanceData;
[k: string]: unknown;
};
/**
Expand Down Expand Up @@ -1085,10 +1089,6 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & {
};
[k: string]: unknown;
};
/**
* Performance data. (Web Vitals, etc.)
*/
performance?: ViewPerformanceData;
[k: string]: unknown;
};
/**
Expand Down
74 changes: 37 additions & 37 deletions samples/rum-events/view.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,43 @@
"in_foreground_periods": [
{ "start": 1345678, "duration": 67 },
{ "start": 1645678, "duration": 67 }
]
],
"performance": {
"cls": {
"score": 0.1,
"timestamp": 2000,
"target_selector": "#foo",
"previous_rect": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
},
"current_rect": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"fcp": {
"timestamp": 420725000
},
"fid": {
"duration": 20000000,
"timestamp": 20000000,
"target_selector": "#foo"
},
"inp": {
"duration": 20000000,
"timestamp": 20000000,
"target_selector": "#foo"
},
"lcp": {
"timestamp": 20000000,
"target_selector": "#foo"
}
}
},
"_dd": {
"document_version": 9,
Expand Down Expand Up @@ -99,41 +135,5 @@
},
"privacy": {
"replay_level": "mask"
},
"performance": {
"cls": {
"score": 0.1,
"timestamp": 2000,
"target_selector": "#foo",
"previous_rect": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
},
"current_rect": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"fcp": {
"timestamp": 420725000
},
"fid": {
"duration": 20000000,
"timestamp": 20000000,
"target_selector": "#foo"
},
"inp": {
"duration": 20000000,
"timestamp": 20000000,
"target_selector": "#foo"
},
"lcp": {
"timestamp": 20000000,
"target_selector": "#foo"
}
}
}
8 changes: 4 additions & 4 deletions schemas/rum/view-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,10 @@
"js_refresh_rate": {
"description": "The JavaScript refresh rate for React Native",
"allOf": [{ "$ref": "_perf-metric-schema.json" }]
},
"performance": {
"description": "Performance data. (Web Vitals, etc.)",
"allOf": [{ "$ref": "_view-performance-schema.json" }]
}
},
"readOnly": true
Expand Down Expand Up @@ -508,10 +512,6 @@
"readOnly": true
}
}
},
"performance": {
"description": "Performance data. (Web Vitals, etc.)",
"allOf": [{ "$ref": "_view-performance-schema.json" }]
}
}
}
Expand Down

0 comments on commit 5c0ca10

Please sign in to comment.