Skip to content

Use Date.now() by default, make performance api optional#1321

Merged
waltjones merged 1 commit into
masterfrom
waltjones/optional-performance-time
Sep 22, 2025
Merged

Use Date.now() by default, make performance api optional#1321
waltjones merged 1 commit into
masterfrom
waltjones/optional-performance-time

Conversation

@waltjones

Copy link
Copy Markdown
Contributor

Description of the change

The performance counter stops counting during sleep on many, if not most, browsers.

This PR uses Date.now() by default for span start/end timestamps, and allows optionally using the performance API.

Type of change

  • Bug fix (non-breaking change that fixes an issue)

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

@waltjones waltjones changed the title Use Date.now() by default, make performnce api optional Use Date.now() by default, make performance api optional Sep 22, 2025

@matux matux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work nailing this down!!!

@waltjones waltjones merged commit 59cc3b1 into master Sep 22, 2025
4 checks passed
@waltjones waltjones deleted the waltjones/optional-performance-time branch September 22, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants