Skip to content

feat(relay,dns): add healthz routes#3783

Merged
Arqu merged 4 commits intofeat-multipathfrom
arqu/healthz
Dec 18, 2025
Merged

feat(relay,dns): add healthz routes#3783
Arqu merged 4 commits intofeat-multipathfrom
arqu/healthz

Conversation

@Arqu
Copy link
Copy Markdown
Collaborator

@Arqu Arqu commented Dec 17, 2025

Description

We're missing some basic service utilities. I kept this simple and just set it all to the /healthz route.

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.
    • List all breaking changes in the above "Breaking Changes" section.
    • Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are:

@Arqu Arqu requested review from dignifiedquire and flub December 17, 2025 10:08
@Arqu Arqu self-assigned this Dec 17, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Dec 17, 2025
@Arqu Arqu added this to iroh Dec 17, 2025
@Arqu Arqu changed the base branch from main to feat-multipath December 17, 2025 10:08
@Arqu Arqu changed the title Arqu/healthz feat(relay,dns): add healthz routes Dec 17, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 17, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3783/docs/iroh/

Last updated: 2025-12-17T12:44:46Z

@Arqu Arqu moved this from 🏗 In progress to 👀 In review in iroh Dec 17, 2025
http_requests_error: state.metrics.http_requests_error.get(),
dns_requests: state.metrics.dns_requests.get(),
dns_lookup_success: state.metrics.dns_lookup_success.get(),
dns_lookup_notfound: state.metrics.dns_lookup_notfound.get(),
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.

that's a lot of details you are making publicly accessible, seems potentially risky

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

hmmm fair, they are all available on the metrics side, maybe just nuke those and keep the version info

Copy link
Copy Markdown
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

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

Definitely in favour of doing this, but would prefer if we did as little as possible in the build.rs and remove all the unused features.

fn emit_vergen() -> Result<(), Box<dyn std::error::Error>> {
let build = BuildBuilder::all_build()?;
let cargo = CargoBuilder::all_cargo()?;
let gitcl = GitclBuilder::all_git()?;
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.

Given we only use this, why not disable all the features on the crate and only use this?

Additionally all_git() seems like it has to invoke a whole bunch of git commands, maybe just sha() would be lighter as well?

@Arqu Arqu requested review from dignifiedquire and flub December 17, 2025 12:45
Copy link
Copy Markdown
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

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

i swear i did approve this before... weird

@Arqu Arqu merged commit 31a6b10 into feat-multipath Dec 18, 2025
22 of 28 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in iroh Dec 18, 2025
@Arqu Arqu deleted the arqu/healthz branch December 18, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants