Skip to content

feat: Register first in main #645

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

Merged
merged 1 commit into from
Apr 11, 2025
Merged

feat: Register first in main #645

merged 1 commit into from
Apr 11, 2025

Conversation

astuyve
Copy link
Contributor

@astuyve astuyve commented Apr 11, 2025

We don't need any configuration options in order to register the extension, so make that request first.

@astuyve astuyve requested a review from a team as a code owner April 11, 2025 11:42
let client = Client::builder().no_proxy().build().map_err(|e| {
Error::new(
std::io::ErrorKind::InvalidData,
format!("Failed to create client: {e:?}"),
)
})?;

let r = register(&client)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we modify the logs in register to be println! in case they're from the tracing library which might not be enabled by now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we debug at all? We're only calling panic!() if we receive a non-200 status code from the register API call, which will crash the process and print to stdout

@astuyve astuyve merged commit 1d24d37 into main Apr 11, 2025
45 checks passed
@astuyve astuyve deleted the aj/register-first branch April 11, 2025 14:44
astuyve added a commit that referenced this pull request Apr 11, 2025
astuyve added a commit that referenced this pull request Apr 11, 2025
Reverts #645

This breaks failover as we handle _that part_ in config
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.

2 participants