-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handful of document-load fixes (#192)
* chore: use addSpanNetworkEvents from otel-web Rather than use a modified copy, adjust event creation code to use shared routine from otel-web. This has the pleasant side effect of also adding http.response_content_length. * fix: bring resource fetch spans into spec compliance Names should not be raw URLs, so I arbitrarily chose 'resourceFetch' to mirror 'documentFetch' - I'm open to any better suggestions. Because the resource url is of course very useful I've put it in the 'http.url' attribute instead. * chore: lint:fix and use semantic constants * fix: firefox sometimes has a fetchStart of 0, doesn't emit doc load spans I noticed that in unit and manual tests Firefox would frequently not emit doc load events. Turns out that sometimes the fetchStart was 0 and the logic prevented spans from being emitted. Simply checking >= 0 rather than > 0 fixes that. * chore: use constant for resourceFetch span name Co-authored-by: Bartlomiej Obecny <[email protected]>
- Loading branch information
Showing
4 changed files
with
21 additions
and
25 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
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