Skip to content

Conversation

@scrocquesel
Copy link
Contributor

  • initContextIfNeeded should be part of total time execution.
  • some optimization to avoid resolving metrics instance for each call. It should be a singleton, so I guess it is safe to keep a reference on it. the instance can be fetch from configuration.getConfigurationService() but a lot of unit tests are stubbing ConfigurationServiceProvider.instance() instead.

Copy link
Collaborator

@csviri csviri left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@metacosm metacosm left a comment

Choose a reason for hiding this comment

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

LGTM

@metacosm metacosm merged commit baf94e7 into operator-framework:next Mar 22, 2022
@scrocquesel scrocquesel deleted the metrics branch March 23, 2022 23:01
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.

3 participants