From b2ec158110289d343d3a3e5834cdb0b93340ba0b Mon Sep 17 00:00:00 2001 From: ifuryst Date: Mon, 5 Aug 2024 23:43:46 +0800 Subject: [PATCH] docs: Fix the wrong log-namespace key. --- lib/vector-common/src/byte_size_of.rs | 2 +- website/content/en/blog/log-namespacing.md | 2 +- website/cue/reference/configuration.cue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vector-common/src/byte_size_of.rs b/lib/vector-common/src/byte_size_of.rs index b0de324465f86..cc679645f9963 100644 --- a/lib/vector-common/src/byte_size_of.rs +++ b/lib/vector-common/src/byte_size_of.rs @@ -14,7 +14,7 @@ pub trait ByteSizeOf { /// /// This function returns the total number of bytes that /// [`std::mem::size_of`] does in addition to any interior allocated - /// bytes. It default implementation is `std::mem::size_of` + + /// bytes. Its default implementation is `std::mem::size_of` + /// `ByteSizeOf::allocated_bytes`. fn size_of(&self) -> usize { mem::size_of_val(self) + self.allocated_bytes() diff --git a/website/content/en/blog/log-namespacing.md b/website/content/en/blog/log-namespacing.md index 65bd5f8b02103..d2d2d049490a5 100644 --- a/website/content/en/blog/log-namespacing.md +++ b/website/content/en/blog/log-namespacing.md @@ -166,4 +166,4 @@ be used. [global log schema]: /docs/reference/configuration/global-options/#log_schema [set_semantic_meaning]: /docs/reference/vrl/functions/#set_semantic_meaning [remap]: /docs/reference/configuration/transforms/remap/ -[global config]: /docs/reference/configuration/global-options/#schema.log_namespacing +[global config]: /docs/reference/configuration/global-options/#schema.log_namespace diff --git a/website/cue/reference/configuration.cue b/website/cue/reference/configuration.cue index a62e69f5b79bc..23142e3f3b41c 100644 --- a/website/cue/reference/configuration.cue +++ b/website/cue/reference/configuration.cue @@ -286,7 +286,7 @@ configuration: { type: object: { examples: [] options: { - log_namespacing: { + log_namespace: { common: false description: """ Globally enables / disables log namespacing. See [Log Namespacing](\(urls.log_namespacing_blog))