Skip to content

Do not fetch metrics when browser is hidden#25121

Open
luk-kaminski wants to merge 1 commit intomasterfrom
improvement/do_not_fetch_metrics_when_browser_is_hidden
Open

Do not fetch metrics when browser is hidden#25121
luk-kaminski wants to merge 1 commit intomasterfrom
improvement/do_not_fetch_metrics_when_browser_is_hidden

Conversation

@luk-kaminski
Copy link
Contributor

@luk-kaminski luk-kaminski commented Feb 25, 2026

Description

Do not fetch metrics when browser is hidden.
/nocl

Motivation and Context

Performance improvement.
It seems that in other places in the code polling stops when browser is hidden, metrics is simply an (forgotten?) exception.

How Has This Been Tested?

Tested via side effect - stopped noticing regular permission checks in MongoDbAuthorizationRealm on hidden/minimalized browser/browser tab.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have requested a documentation update.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

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.

1 participant