Skip to content

Commit 8085d77

Browse files
authored
chore(webhook): Hide ByteString in instrumentation (#1137)
* chore(webhook): Hide ByteString in instrumentation * chore(webhook): Also hide the ByteString in the rotation handlers
1 parent 356fb71 commit 8085d77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/stackable-webhook/src/webhooks/conversion_webhook.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl<H> ConversionWebhook<H> {
135135
}
136136

137137
#[instrument(
138-
skip(self, crd, crd_api),
138+
skip(self, crd, crd_api, new_ca_bundle),
139139
fields(
140140
name = crd.name_any(),
141141
kind = &crd.spec.names.kind
@@ -244,7 +244,7 @@ where
244244
self.options.disable_crd_maintenance
245245
}
246246

247-
#[instrument(skip(self))]
247+
#[instrument(skip(self, new_ca_bundle))]
248248
async fn handle_certificate_rotation(
249249
&mut self,
250250
new_ca_bundle: &ByteString,

crates/stackable-webhook/src/webhooks/mutating_webhook.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ where
206206
self.options.disable_mwc_maintenance
207207
}
208208

209-
#[instrument(skip(self))]
209+
#[instrument(skip(self, new_ca_bundle))]
210210
async fn handle_certificate_rotation(
211211
&mut self,
212212
new_ca_bundle: &ByteString,

0 commit comments

Comments
 (0)