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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move metrics endpoint-related code into a separate file #345

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

palant
Copy link
Contributor

@palant palant commented Apr 16, 2024

Description

This is largely analogous to #344.

Loading logger module in lib.rs was moved up for sake of consistency: modules loaded after it will have macros like server_info imported implicitly, the ones loaded before won't. Further alphabetical rearranging of modules was performed by rustfmt.

Related Issue

This is another step towards fixing #342.

How Has This Been Tested?

Tests pass, and I’ve added a few new tests as well. Functional testing on Linux didn’t show any issues.

This is largely analogous to #344, another step towards fixing #342.

Loading logger module in lib.rs was moved up for sake of consistency: modules loaded after it will have macros like server_info imported implicitly, the ones loaded before won't. Further alphabetical rearranging of modules was performed by rustftm.
Copy link

semanticdiff-com bot commented Apr 16, 2024

Review changes with SemanticDiff.

Analyzed 5 of 5 files.

Filename Status
✔️ src/handler.rs Analyzed
✔️ src/health.rs 7.69% smaller
✔️ src/lib.rs Analyzed
✔️ src/metrics.rs Analyzed
✔️ src/server.rs 6.11% smaller

@palant palant marked this pull request as draft April 16, 2024 21:05
@palant palant mentioned this pull request Apr 16, 2024
13 tasks
@palant palant marked this pull request as ready for review April 16, 2024 21:12
@joseluisq joseluisq added enhancement New feature or request v2 v2 release codebase Related to the project's source code labels Apr 17, 2024
Copy link
Collaborator

@joseluisq joseluisq left a comment

Choose a reason for hiding this comment

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

Thanks!

@joseluisq joseluisq changed the title refactor: move metrics endpoint-related code into a separate file Move metrics endpoint-related code into a separate file Apr 18, 2024
@joseluisq joseluisq merged commit cc6784a into static-web-server:master Apr 18, 2024
27 checks passed
@palant palant deleted the metrics-module branch April 18, 2024 20:12
@joseluisq joseluisq added this to the v2.30.0 milestone Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codebase Related to the project's source code enhancement New feature or request v2 v2 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants