Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename unregisterTimeHistogram to unregisterDurationHistogram #109

Conversation

simonjbeaumont
Copy link
Contributor

@simonjbeaumont simonjbeaumont commented Feb 13, 2024

Motivation

The new 2.0 alpha APIs have asymmetric names for registering and unregistering duration histograms:

  • makeValueHistogram 馃檪
  • unregisterValueHistogram 馃檪
  • makeDurationHistogram 馃檪
  • unregisterTimeHistogram 馃

Modifications

  • Rename unregisterTimeHistogram to unregisterDurationHistogram.

Result

APIs more symmetrically named.

鈿狅笍 API breakage

This is an API breaking change and I have not provided a backwards compatible shim and deprecation notice, because we are currently at 2.0.0-alpha.1 and SemVer permits API breaks at this stage.

However, I'm happy to update the patch to include the temporary shim, if we want to add it now, and remove before 2.0.0 release.

@fabianfett
Copy link
Member

@swift-server-bot test this please

@fabianfett fabianfett merged commit 26ee5ff into swift-server:main Feb 13, 2024
5 checks passed
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.

None yet

3 participants