Don't capture secrets in tracing (#19826)

These fields aren't logged in uv release builds, but we shouldn't
capture them in the first place.
This commit is contained in:
konsti
2026-06-12 21:17:27 +02:00
committed by GitHub
parent e83afa5d90
commit 2b4b589836
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ impl KeyringProvider {
}
/// Store credentials to the system keyring.
#[instrument(skip(self))]
#[instrument(skip_all, fields(service = ?service, username = ?username))]
async fn store_native(
&self,
service: &str,
+1 -1
View File
@@ -1131,7 +1131,7 @@ impl ManagedPythonDownload {
/// For CPython without a user-configured mirror, the default Astral mirror is tried first.
/// Each attempt tries all URLs in sequence without backoff between them; backoff is only
/// applied after all URLs have been exhausted.
#[instrument(skip(client, installation_dir, scratch_dir, reporter), fields(download = % self.key()))]
#[instrument(skip_all, fields(download = % self.key()))]
pub async fn fetch_with_retry(
&self,
client: &BaseClient,