From 4c2f06fdd8b058201308fb16b2f7597d56585ac0 Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Sat, 14 Nov 2020 09:11:54 -0800 Subject: [PATCH] =?UTF-8?q?Rename=20CaptureBytes=20context=5Fkey=20?= =?UTF-8?q?=E2=9E=A1=20metadata=5Fkey=20(#133)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bringing this naming inline with #121 --- src/extensions/filters/capture_bytes/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extensions/filters/capture_bytes/mod.rs b/src/extensions/filters/capture_bytes/mod.rs index 524b629a99..1381d3d868 100644 --- a/src/extensions/filters/capture_bytes/mod.rs +++ b/src/extensions/filters/capture_bytes/mod.rs @@ -98,7 +98,7 @@ struct CaptureBytes { capture: Box, /// metrics reporter for this filter. metrics: Metrics, - context_key: String, + metadata_key: String, size: usize, remove: bool, } @@ -114,7 +114,7 @@ impl CaptureBytes { log: base.new(o!("source" => "extensions::CaptureBytes")), capture, metrics, - context_key: config.metadata_key, + metadata_key: config.metadata_key, size: config.size, remove: config.remove, } @@ -141,7 +141,7 @@ impl Filter for CaptureBytes { .capture(&mut ctx.contents, self.size, self.remove); ctx.metadata - .insert(self.context_key.clone(), Box::new(token)); + .insert(self.metadata_key.clone(), Box::new(token)); Some(ctx.into()) }