From 336efc9f851d2e5b6c5107f8efc5d74b79a1dc41 Mon Sep 17 00:00:00 2001 From: Chao Weng <19381524+sincejune@users.noreply.github.com> Date: Tue, 3 Jun 2025 02:01:33 +0800 Subject: [PATCH] [chore] Remove duplicated 'will be's (#13132) #### Description Remove duplicated "will be"s. #### Link to tracking issue n/a #### Testing n/a #### Documentation n/a --- cmd/mdatagen/internal/loader_test.go | 4 ++-- cmd/mdatagen/internal/sampleconnector/documentation.md | 2 +- cmd/mdatagen/internal/sampleconnector/metadata.yaml | 2 +- cmd/mdatagen/internal/samplereceiver/documentation.md | 4 ++-- cmd/mdatagen/internal/samplereceiver/metadata.yaml | 4 ++-- cmd/mdatagen/internal/samplescraper/documentation.md | 2 +- cmd/mdatagen/internal/samplescraper/metadata.yaml | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cmd/mdatagen/internal/loader_test.go b/cmd/mdatagen/internal/loader_test.go index a50d7e2487..a6608aca50 100644 --- a/cmd/mdatagen/internal/loader_test.go +++ b/cmd/mdatagen/internal/loader_test.go @@ -224,7 +224,7 @@ func TestLoadMetadata(t *testing.T) { "default.metric.to_be_removed": { Enabled: true, Description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default.", - ExtendedDocumentation: "The metric will be will be removed soon.", + ExtendedDocumentation: "The metric will be removed soon.", Warnings: Warnings{ IfEnabled: "This metric is deprecated and will be removed soon.", }, @@ -269,7 +269,7 @@ func TestLoadMetadata(t *testing.T) { "default.event.to_be_removed": { Enabled: true, Description: "[DEPRECATED] Example to-be-removed event enabled by default.", - ExtendedDocumentation: "The event will be will be removed soon.", + ExtendedDocumentation: "The event will be removed soon.", Warnings: Warnings{ IfEnabled: "This event is deprecated and will be removed soon.", }, diff --git a/cmd/mdatagen/internal/sampleconnector/documentation.md b/cmd/mdatagen/internal/sampleconnector/documentation.md index f2d0a5a761..2362a4fd8a 100644 --- a/cmd/mdatagen/internal/sampleconnector/documentation.md +++ b/cmd/mdatagen/internal/sampleconnector/documentation.md @@ -36,7 +36,7 @@ The metric will be become optional soon. [DEPRECATED] Non-monotonic delta sum double metric enabled by default. -The metric will be will be removed soon. +The metric will be removed soon. | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | diff --git a/cmd/mdatagen/internal/sampleconnector/metadata.yaml b/cmd/mdatagen/internal/sampleconnector/metadata.yaml index 1e24520e6f..ad46b6f834 100644 --- a/cmd/mdatagen/internal/sampleconnector/metadata.yaml +++ b/cmd/mdatagen/internal/sampleconnector/metadata.yaml @@ -135,7 +135,7 @@ metrics: default.metric.to_be_removed: enabled: true description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default." - extended_documentation: The metric will be will be removed soon. + extended_documentation: The metric will be removed soon. unit: s sum: value_type: double diff --git a/cmd/mdatagen/internal/samplereceiver/documentation.md b/cmd/mdatagen/internal/samplereceiver/documentation.md index 0bddd11f39..1cfbf171a2 100644 --- a/cmd/mdatagen/internal/samplereceiver/documentation.md +++ b/cmd/mdatagen/internal/samplereceiver/documentation.md @@ -36,7 +36,7 @@ The metric will be become optional soon. [DEPRECATED] Non-monotonic delta sum double metric enabled by default. -The metric will be will be removed soon. +The metric will be removed soon. | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | @@ -129,7 +129,7 @@ Example event enabled by default. [DEPRECATED] Example to-be-removed event enabled by default. -The event will be will be removed soon. +The event will be removed soon. #### Attributes diff --git a/cmd/mdatagen/internal/samplereceiver/metadata.yaml b/cmd/mdatagen/internal/samplereceiver/metadata.yaml index aa7e927d6f..b81840c202 100644 --- a/cmd/mdatagen/internal/samplereceiver/metadata.yaml +++ b/cmd/mdatagen/internal/samplereceiver/metadata.yaml @@ -125,7 +125,7 @@ events: default.event.to_be_removed: enabled: true description: "[DEPRECATED] Example to-be-removed event enabled by default." - extended_documentation: The event will be will be removed soon. + extended_documentation: The event will be removed soon. warnings: if_enabled: This event is deprecated and will be removed soon. attributes: [ string_attr, overridden_int_attr, enum_attr, slice_attr, map_attr ] @@ -167,7 +167,7 @@ metrics: default.metric.to_be_removed: enabled: true description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default." - extended_documentation: The metric will be will be removed soon. + extended_documentation: The metric will be removed soon. unit: s sum: value_type: double diff --git a/cmd/mdatagen/internal/samplescraper/documentation.md b/cmd/mdatagen/internal/samplescraper/documentation.md index f2d0a5a761..2362a4fd8a 100644 --- a/cmd/mdatagen/internal/samplescraper/documentation.md +++ b/cmd/mdatagen/internal/samplescraper/documentation.md @@ -36,7 +36,7 @@ The metric will be become optional soon. [DEPRECATED] Non-monotonic delta sum double metric enabled by default. -The metric will be will be removed soon. +The metric will be removed soon. | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | diff --git a/cmd/mdatagen/internal/samplescraper/metadata.yaml b/cmd/mdatagen/internal/samplescraper/metadata.yaml index 6564828c28..1d090b137c 100644 --- a/cmd/mdatagen/internal/samplescraper/metadata.yaml +++ b/cmd/mdatagen/internal/samplescraper/metadata.yaml @@ -135,7 +135,7 @@ metrics: default.metric.to_be_removed: enabled: true description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default." - extended_documentation: The metric will be will be removed soon. + extended_documentation: The metric will be removed soon. unit: s sum: value_type: double