-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add anonymous identifier propagation
- Loading branch information
1 parent
2b07723
commit ef1b21d
Showing
28 changed files
with
1,157 additions
and
161 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
864 changes: 730 additions & 134 deletions
864
features/dd-sdk-android-rum/api/dd-sdk-android-rum.api
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
features/dd-sdk-android-rum/src/main/json/rum/_rect-schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "rum/_rect-schema.json", | ||
"title": "RumRect", | ||
"type": "object", | ||
"description": "Schema for DOMRect-like rectangles describing an element's bounding client rect", | ||
"required": ["x", "y", "width", "height"], | ||
"properties": { | ||
"x": { | ||
"type": "number", | ||
"description": "The x coordinate of the element's origin", | ||
"readOnly": true | ||
}, | ||
"y": { | ||
"type": "number", | ||
"description": "The y coordinate of the element's origin", | ||
"readOnly": true | ||
}, | ||
"width": { | ||
"type": "number", | ||
"description": "The element's width", | ||
"readOnly": true | ||
}, | ||
"height": { | ||
"type": "number", | ||
"description": "The element's height", | ||
"readOnly": true | ||
} | ||
} | ||
} |
137 changes: 137 additions & 0 deletions
137
features/dd-sdk-android-rum/src/main/json/rum/_view-performance-schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "rum/_view-performance-schema.json", | ||
"title": "ViewPerformanceData", | ||
"type": "object", | ||
"description": "Schema for view-level RUM performance data (Web Vitals, etc.)", | ||
"properties": { | ||
"cls": { | ||
"type": "object", | ||
"description": "Cumulative Layout Shift", | ||
"required": ["score"], | ||
"properties": { | ||
"score": { | ||
"type": "number", | ||
"description": "Total layout shift score that occurred on the view", | ||
"$comment": "Replaces the deprecated `view.cumulative_layout_shift`", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"timestamp": { | ||
"type": "integer", | ||
"description": "Timestamp in ns of the largest layout shift contributing to CLS", | ||
"$comment": "Replaces the deprecated `view.cumulative_layout_shift_time`", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"target_selector": { | ||
"type": "string", | ||
"description": "CSS selector path of the first element (in document order) of the largest layout shift contributing to CLS", | ||
"$comment": "Replaces the deprecated `view.cumulative_layout_shift_target_selector`", | ||
"readOnly": true | ||
}, | ||
"previous_rect": { | ||
"description": "Bounding client rect of the element before the layout shift", | ||
"allOf": [{ "$ref": "_rect-schema.json" }] | ||
}, | ||
"current_rect": { | ||
"description": "Bounding client rect of the element after the layout shift", | ||
"allOf": [{ "$ref": "_rect-schema.json" }] | ||
} | ||
}, | ||
"readOnly": true | ||
}, | ||
"fcp": { | ||
"type": "object", | ||
"description": "First Contentful Paint", | ||
"required": ["timestamp"], | ||
"properties": { | ||
"timestamp": { | ||
"type": "integer", | ||
"description": "Timestamp in ns of the first rendering", | ||
"$comment": "Replaces the deprecated `view.first_contentful_paint`", | ||
"minimum": 0, | ||
"readOnly": true | ||
} | ||
}, | ||
"readOnly": true | ||
}, | ||
"fid": { | ||
"type": "object", | ||
"description": "First Input Delay", | ||
"required": ["duration", "timestamp"], | ||
"properties": { | ||
"duration": { | ||
"type": "integer", | ||
"description": "Duration in ns of the first input event delay", | ||
"$comment": "Replaces the deprecated `view.first_input_delay`", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"timestamp": { | ||
"type": "integer", | ||
"description": "Timestamp in ns of the first input event", | ||
"$comment": "Replaces the deprecated `view.first_input_time`", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"target_selector": { | ||
"type": "string", | ||
"description": "CSS selector path of the first input target element", | ||
"$comment": "Replaces the deprecated `view.first_input_target_selector`", | ||
"readOnly": true | ||
} | ||
}, | ||
"readOnly": true | ||
}, | ||
"inp": { | ||
"type": "object", | ||
"description": "Interaction to Next Paint", | ||
"required": ["duration"], | ||
"properties": { | ||
"duration": { | ||
"type": "integer", | ||
"description": "Longest duration in ns between an interaction and the next paint", | ||
"$comment": "Replaces the deprecated `view.interaction_to_next_paint`", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"timestamp": { | ||
"type": "integer", | ||
"description": "Timestamp in ns of the start of the INP interaction", | ||
"$comment": "Replaces the deprecated `view.interaction_to_next_paint_time`", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"target_selector": { | ||
"type": "string", | ||
"description": "CSS selector path of the interacted element for the INP interaction", | ||
"$comment": "Replaces the deprecated `view.interaction_to_next_paint_target_selector`", | ||
"readOnly": true | ||
} | ||
}, | ||
"readOnly": true | ||
}, | ||
"lcp": { | ||
"type": "object", | ||
"description": "Largest Contentful Paint", | ||
"required": ["timestamp"], | ||
"properties": { | ||
"timestamp": { | ||
"type": "integer", | ||
"description": "Timestamp in ns of the largest contentful paint", | ||
"$comment": "Replaces the deprecated `view.largest_contentful_paint`", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"target_selector": { | ||
"type": "string", | ||
"description": "CSS selector path of the largest contentful paint element", | ||
"$comment": "Replaces the deprecated `view.largest_contentful_paint_target_selector`", | ||
"readOnly": true | ||
} | ||
}, | ||
"readOnly": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.