-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: capture all W3C fields in ResourceEvents (#489)
* fix: replace ResourceEvent with W3C compliant PerformanceResourceTimingEvent (breaking) * fix: firefox * chore: add version 2.0.0 * chore: dispatch omitted resource fields to event bus * chore: remove internalMessage * chore: cleanup * fix: flaky ms edge integ test * chore: add unit tests for event type validation * fix: integ test port * fix: flaky ms edge integ test * chore: add links to stylesheet filetype * chore: test * fix: disable flaky tests on edge * chore: add integ test for value check * fix: port * chore: remove server timing for now * chore: observe() * chore: restore ignore comment * chore: add length check to integ test * Revert "chore: add length check to integ test" This reverts commit 5061775. * chore: change title to PerformanceResourceTimingEvent * chore: remove version and add enum for initiatorType * fix: isPutRumEvents() * Revert "fix: isPutRumEvents()" This reverts commit 3e29234. * chore: add initiatorType "other" * chore: add runtime check for resource * chore: restore name * chore: restore name * Add a wait to see if it fixes integ tests --------- Co-authored-by: Quinn Hanam <hanquinn@amazon.com>
- Loading branch information
Showing
15 changed files
with
426 additions
and
431 deletions.
There are no files selected for viewing
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
85 changes: 49 additions & 36 deletions
85
src/event-schemas/resource-event.json → ...-schemas/performance-resource-timing.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 |
---|---|---|
@@ -1,88 +1,101 @@ | ||
{ | ||
"$id": "com.amazon.rum.performance_resource_event", | ||
"$id": "com.amazon.rum.performance_resource_timing", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "ResourceEvent", | ||
"title": "PerformanceResourceTimingEvent", | ||
"type": "object", | ||
"properties": { | ||
"version": { | ||
"const": "1.0.0", | ||
"type": "string", | ||
"description": "Schema version." | ||
}, | ||
"targetUrl": { | ||
"description": "Page URL", | ||
"name": { | ||
"type": "string" | ||
}, | ||
"initiatorType": { | ||
"entryType": { | ||
"const": "resource", | ||
"type": "string" | ||
}, | ||
"startTime": { | ||
"type": "number" | ||
}, | ||
"redirectStart": { | ||
"duration": { | ||
"type": "number" | ||
}, | ||
"redirectTime": { | ||
"connectStart": { | ||
"type": "number" | ||
}, | ||
"workerStart": { | ||
"connectEnd": { | ||
"type": "number" | ||
}, | ||
"workerTime": { | ||
"decodedBodySize": { | ||
"type": "number" | ||
}, | ||
"fetchStart": { | ||
"domainLookupEnd": { | ||
"type": "number" | ||
}, | ||
"domainLookupStart": { | ||
"type": "number" | ||
}, | ||
"dns": { | ||
"encodedBodySize": { | ||
"type": "number" | ||
}, | ||
"fetchStart": { | ||
"type": "number" | ||
}, | ||
"initiatorType": { | ||
"type": "string", | ||
"enum": [ | ||
"audio", | ||
"beacon", | ||
"body", | ||
"css", | ||
"early-hint", | ||
"embed", | ||
"fetch", | ||
"frame", | ||
"iframe", | ||
"icon", | ||
"image", | ||
"img", | ||
"input", | ||
"link", | ||
"navigation", | ||
"object", | ||
"ping", | ||
"script", | ||
"track", | ||
"video", | ||
"xmlhttprequest", | ||
"other" | ||
] | ||
}, | ||
"nextHopProtocol": { | ||
"type": "string" | ||
}, | ||
"connectStart": { | ||
"type": "number" | ||
}, | ||
"connect": { | ||
"redirectEnd": { | ||
"type": "number" | ||
}, | ||
"secureConnectionStart": { | ||
"redirectStart": { | ||
"type": "number" | ||
}, | ||
"tlsTime": { | ||
"type": "number" | ||
"renderBlockingStatus": { | ||
"type": "string" | ||
}, | ||
"requestStart": { | ||
"type": "number" | ||
}, | ||
"timeToFirstByte": { | ||
"responseEnd": { | ||
"type": "number" | ||
}, | ||
"responseStart": { | ||
"type": "number" | ||
}, | ||
"responseTime": { | ||
"type": "number" | ||
}, | ||
"duration": { | ||
"type": "number" | ||
}, | ||
"headerSize": { | ||
"secureConnectionStart": { | ||
"type": "number" | ||
}, | ||
"transferSize": { | ||
"type": "number" | ||
}, | ||
"compressionRatio": { | ||
"workerStart": { | ||
"type": "number" | ||
}, | ||
"fileType": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": ["version", "initiatorType", "duration", "fileType"] | ||
"required": ["duration", "entryType", "startTime"] | ||
} |
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.